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)

This commit is contained in:
Alex Phillips 2022-05-28 14:03:54 -04:00 committed by GitHub
parent 86242e9756
commit d8f86dc883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
},
}),