Skip to content

Commit

Permalink
chore(suite): fix getTokens usage
Browse files Browse the repository at this point in the history
  • Loading branch information
enjojoy authored and tomasklim committed Dec 20, 2024
1 parent 8219b59 commit 2a6cdab
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ export const PortfolioCard = memo(() => {
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 2a6cdab

Please sign in to comment.