diff --git a/packages/desktop-client/src/components/modals/ImportTransactions.jsx b/packages/desktop-client/src/components/modals/ImportTransactions.jsx index bffda77e0fb..26abe34e469 100644 --- a/packages/desktop-client/src/components/modals/ImportTransactions.jsx +++ b/packages/desktop-client/src/components/modals/ImportTransactions.jsx @@ -941,9 +941,7 @@ export function ImportTransactions({ modalProps, options }) { } const category_id = parseCategoryFields(trans, categories.list); - if (category_id != null) { - trans.category = category_id; - } + trans.category = category_id; const { inflow, outflow, inOut, ...finalTransaction } = trans; finalTransactions.push({ diff --git a/upcoming-release-notes/2790.md b/upcoming-release-notes/2790.md new file mode 100644 index 00000000000..72fec3c4fa5 --- /dev/null +++ b/upcoming-release-notes/2790.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [matt-fidd] +--- + +Fix CSV import not matching category is (nothing) rules