From d8f86dc883b2c423a656c57fe3df2a846d87e0ae Mon Sep 17 00:00:00 2001 From: Alex Phillips Date: Sat, 28 May 2022 14:03:54 -0400 Subject: [PATCH] default to '0' category if it's empty (this happens if you are making a trx on off-budget account but it's not a transfer) (#23) --- frontend/src/components/AccountTable/AccountTable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/AccountTable/AccountTable.js b/frontend/src/components/AccountTable/AccountTable.js index e7df8f2..3425ec3 100644 --- a/frontend/src/components/AccountTable/AccountTable.js +++ b/frontend/src/components/AccountTable/AccountTable.js @@ -826,7 +826,7 @@ export default function Account(props) { date: newRow.date, memo: newRow.memo, payeeId: newRow.payeeId, - categoryId: newRow.categoryId === '0' ? null : newRow.categoryId, + categoryId: newRow.categoryId === '0' || newRow.categoryId === '' ? null : newRow.categoryId, status: 0, }, }),