Don't show N/A when fairs not found (#98)

This commit is contained in:
Armani Ferrante 2021-02-21 21:29:55 +08:00 committed by GitHub
parent 6fd634e498
commit acdd1130b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -230,14 +230,10 @@ export function BalanceListItem({ publicKey, expandable }) {
flexDirection: 'column',
}}
>
{price === undefined ? (
<>{/* Loading */}</>
) : price !== null ? (
{price && (
<Typography color="textSecondary">
${((amount / Math.pow(10, decimals)) * price).toFixed(2)}
</Typography>
) : (
<Typography color="textSecondary">N/A</Typography>
)}
</div>
</div>