diff --git a/packages/desktop-client/src/hooks/usePreviewTransactions.ts b/packages/desktop-client/src/hooks/usePreviewTransactions.ts index 43dbf5aac59..786e369c311 100644 --- a/packages/desktop-client/src/hooks/usePreviewTransactions.ts +++ b/packages/desktop-client/src/hooks/usePreviewTransactions.ts @@ -53,7 +53,7 @@ export function usePreviewTransactions( })), })); setPreviewTransactions(ungroupTransactions(withDefaults)); - collapseTransactions?.(withDefaults.map(t => t.id)); + collapseTransactions(withDefaults.map(t => t.id)); }); }