diff --git a/packages/desktop-client/src/components/modals/ImportTransactions.jsx b/packages/desktop-client/src/components/modals/ImportTransactions.jsx index a421aa266a5..79f23a37a84 100644 --- a/packages/desktop-client/src/components/modals/ImportTransactions.jsx +++ b/packages/desktop-client/src/components/modals/ImportTransactions.jsx @@ -303,14 +303,14 @@ function parseAmountFields( function parseCategoryFields(trans, categories) { let match = null; - for (category of categories) { + categories.forEach(category => { if (category.id === trans.category) { return null; } if (category.name === trans.category) { match = category.id; } - } + }); return match; } @@ -374,7 +374,12 @@ function Transaction({ {transaction.notes} - + {categoryList.includes(transaction.category) && transaction.category} {splitMode ? (