Skip to content

Commit 437681a

Browse files
committed
refactor: remove redundant financial summary fetch on transaction changes
1 parent bed0091 commit 437681a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/components/TransactionSummary.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ export function TransactionSummary({ transactions }: TransactionSummaryProps) {
1616
const isMobile = useIsMobile();
1717
const { summary, loading, error, fetchFinancialSummary } = useFinancialSummary();
1818

19-
// Refresh financial summary when transactions change
20-
useEffect(() => {
21-
fetchFinancialSummary();
22-
}, [transactions, fetchFinancialSummary]);
2319

2420
// Use centralized formatting utility
2521
const formatCurrencyWithMobile = (amount: number) => {

0 commit comments

Comments
 (0)