fix: asd key element to accounts index page

This commit is contained in:
Víctor Falcón 2025-12-08 18:36:17 +01:00
parent 44860941ee
commit 8eab41ac89
1 changed files with 8 additions and 19 deletions

View File

@ -83,25 +83,14 @@ export default function AccountsIndex({ accounts }: Props) {
const accountsInGroup = groupedAccounts[type];
if (accountsInGroup.length === 0) return null;
return (
<>
{isLoading
? accountsInGroup.map((account) => (
<AccountListCard
key={account.id}
account={account}
loading={true}
/>
))
: accountsInGroup.map((account) => (
<AccountListCard
key={account.id}
account={account}
onBalanceUpdated={refetch}
/>
))}
</>
);
return accountsInGroup.map((account) => (
<AccountListCard
key={account.id}
account={account}
loading={isLoading}
onBalanceUpdated={refetch}
/>
));
})}
</div>