Skip to content

Commit

Permalink
Handle null values in must-category-transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Oct 10, 2023
1 parent da75e52 commit fc9010a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/loot-core/src/server/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ handlers['must-category-transfer'] = async function ({ id }) {
const sheetName = monthUtils.sheetForMonth(month);
const value = sheet.get().getCellValue(sheetName, 'budget-' + id);

return value !== 0;
return value != null && value !== 0;
});
};

Expand Down

0 comments on commit fc9010a

Please sign in to comment.