Skip to content

A local-first personal finance app

Fix crash on transactions table with new transaction popup open (#4812)

Julian Dominguez-Schatz523a62c8a0ac
diff --git a/packages/desktop-client/src/components/transactions/TransactionsTable.jsx b/packages/desktop-client/src/components/transactions/TransactionsTable.jsx
index a8424b56de..cb0b71e720 100644
--- a/packages/desktop-client/src/components/transactions/TransactionsTable.jsx
+++ b/packages/desktop-client/src/components/transactions/TransactionsTable.jsx
@@ -2017,7 +2017,7 @@ function TransactionTableInner({
onDistributeRemainder={props.onDistributeRemainder}
balance={
props.transactions?.length > 0
- ? props.balances?.[props.transactions[0]?.id]?.balance
+ ? (props.balances?.[props.transactions[0]?.id]?.balance ?? 0)
: 0
}
/>
diff --git a/upcoming-release-notes/4812.md b/upcoming-release-notes/4812.md
new file mode 100644
index 0000000000..3c3b7c307d
--- /dev/null
+++ b/upcoming-release-notes/4812.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [jfdoming]
+---
+
+Fix crash on transactions table with new transaction popup open