Skip to content

A local-first personal finance app

:bug: Avoid passing a boolean to the import trans category title (#2278)

DJ Mountney317e7f135eeb
diff --git a/packages/desktop-client/src/components/modals/ImportTransactions.jsx b/packages/desktop-client/src/components/modals/ImportTransactions.jsx
index 53b289d3ff..89a564b701 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 0000000000..5d98621d10
--- /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