Correção de warn de typescript

This commit is contained in:
Dionizio Ferreira
2025-12-06 07:35:42 -03:00
parent de3d99a3b1
commit 84d7115a77

View File

@@ -194,7 +194,11 @@ export function AccountsPage({ accounts, logoOptions }: AccountsPageProps) {
{transferFromAccount && ( {transferFromAccount && (
<TransferDialog <TransferDialog
accounts={accounts} accounts={accounts.map((a) => ({
...a,
balance: a.balance ?? a.initialBalance ?? 0,
excludeFromBalance: a.excludeFromBalance ?? false,
}))}
fromAccountId={transferFromAccount.id} fromAccountId={transferFromAccount.id}
currentPeriod={getCurrentPeriod()} currentPeriod={getCurrentPeriod()}
open={transferOpen} open={transferOpen}