feat: add total balance calculation and display in account management; update account card to show calculated balance
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 1m26s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 1m26s
This commit is contained in:
@@ -199,7 +199,7 @@ export function useAccountsWithStats() {
|
||||
throw new Error("Failed to fetch accounts with stats");
|
||||
}
|
||||
return response.json() as Promise<
|
||||
Array<Account & { transactionCount: number }>
|
||||
Array<Account & { transactionCount: number; calculatedBalance: number }>
|
||||
>;
|
||||
},
|
||||
staleTime: 60 * 1000, // 1 minute
|
||||
|
||||
Reference in New Issue
Block a user