Don't show N/A when fairs not found (#98)
This commit is contained in:
parent
6fd634e498
commit
acdd1130b1
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue