Skip to content

Commit

Permalink
[NO CHANGELOG][Balance Widget] fix: Use token icon if available (#2173)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhesgodi authored Sep 13, 2024
1 parent 7319788 commit d216193
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ export const getTokenBalances = async (
...balanceResult,
token: {
...balanceResult.token,
icon: getTokenImageByAddress(
checkout.config.environment as Environment,
isNativeToken(balanceResult.token.address)
? balanceResult.token.symbol
: balanceResult.token.address ?? '',
),
icon:
balanceResult.token.icon
?? getTokenImageByAddress(
checkout.config.environment as Environment,
isNativeToken(balanceResult.token.address)
? balanceResult.token.symbol
: balanceResult.token.address ?? '',
),
},
}));

Expand Down

0 comments on commit d216193

Please sign in to comment.