Skip to content

Commit

Permalink
fix: adding check if there is quote before rendering it (#2072)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo authored Dec 7, 2023
1 parent 8987481 commit 4374029
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,14 @@ const ChainAndTokenSelector = (props: Props) => {
.contract_decimals
)
).toLocaleString()}{' '}
<span className={styles.tokenName}>
$
{balances[
token.address.toLocaleLowerCase()
].quote.toLocaleString()}
</span>
{balances[token.address.toLocaleLowerCase()].quote ? (
<span className={styles.tokenName}>
$
{balances[
token.address.toLocaleLowerCase()
].quote.toLocaleString()}
</span>
) : null}
</>
) : (
0
Expand Down

0 comments on commit 4374029

Please sign in to comment.