Skip to content

A local-first personal finance app

only show schedule name in notes for upcoming transactions (#5580)

Matt Fiddaman89e5676cfbb9
diff --git a/packages/desktop-client/src/components/transactions/TransactionsTable.tsx b/packages/desktop-client/src/components/transactions/TransactionsTable.tsx
index 78f2d5f1ea..105ac7520b 100644
--- a/packages/desktop-client/src/components/transactions/TransactionsTable.tsx
+++ b/packages/desktop-client/src/components/transactions/TransactionsTable.tsx
@@ -1376,7 +1376,7 @@ const Transaction = memo(function Transaction({
textAlign="flex"
exposed={focusedField === 'notes'}
focused={focusedField === 'notes'}
- value={notes ?? schedule?.name ?? ''}
+ value={notes ?? (isPreview ? schedule?.name : null) ?? ''}
valueStyle={valueStyle}
formatter={value =>
NotesTagFormatter({ notes: value, onNotesTagClick })
diff --git a/upcoming-release-notes/5580.md b/upcoming-release-notes/5580.md
new file mode 100644
index 0000000000..ee45bb96f2
--- /dev/null
+++ b/upcoming-release-notes/5580.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [matt-fidd]
+---
+
+Only show schedule name in notes for upcoming transactions