From 317e7f135eeb89368e3a57e91c47e90685c6fcaa Mon Sep 17 00:00:00 2001 From: DJ Mountney <david@twkie.net> Date: Wed, 24 Jan 2024 11:23:02 -0800 Subject: [PATCH] :bug: Avoid passing a boolean to the import trans category title (#2278) * Avoid passing a boolean to the import trans category title - Fixes an error regading passing false to title when category is not available --- .../src/components/modals/ImportTransactions.jsx | 4 +++- upcoming-release-notes/2278.md | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 upcoming-release-notes/2278.md diff --git a/packages/desktop-client/src/components/modals/ImportTransactions.jsx b/packages/desktop-client/src/components/modals/ImportTransactions.jsx index 53b289d3f..89a564b70 100644 --- a/packages/desktop-client/src/components/modals/ImportTransactions.jsx +++ b/packages/desktop-client/src/components/modals/ImportTransactions.jsx @@ -376,7 +376,9 @@ function Transaction({ <Field width="flex" title={ - categoryList.includes(transaction.category) && transaction.category + categoryList.includes(transaction.category) + ? transaction.category + : undefined } > {categoryList.includes(transaction.category) && transaction.category} diff --git a/upcoming-release-notes/2278.md b/upcoming-release-notes/2278.md new file mode 100644 index 000000000..5d98621d1 --- /dev/null +++ b/upcoming-release-notes/2278.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [twk3] +--- + +Fix 'false' passed as title in import transactions modal -- GitLab