Skip to content

Commit

Permalink
fix(suite): fixed updated props for getTokens in useTotalFiatBalance
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasBoda authored and tomasklim committed Dec 27, 2024
1 parent 214bfd0 commit b548006
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/suite/src/hooks/wallet/useTotalFiatBalance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ export const useTotalFiatBalance = (
const tokenDefinitions = useSelector(state => state.tokenDefinitions);
const deviceAccounts: Account[] = accounts.map(account => {
const coinDefinitions = tokenDefinitions?.[account.symbol]?.coin;
const tokens = getTokens(account.tokens ?? [], account.symbol, coinDefinitions);
const tokens = getTokens({
tokens: account.tokens ?? [],
symbol: account.symbol,
tokenDefinitions: coinDefinitions,
});

return { ...account, tokens: tokens.shownWithBalance };
});
Expand Down

0 comments on commit b548006

Please sign in to comment.