From acdd1130b1bb0665aaef80bdad430b5bb6608c55 Mon Sep 17 00:00:00 2001 From: Armani Ferrante Date: Sun, 21 Feb 2021 21:29:55 +0800 Subject: [PATCH] Don't show N/A when fairs not found (#98) --- src/components/BalancesList.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/BalancesList.js b/src/components/BalancesList.js index 5a67bd0..03e07df 100644 --- a/src/components/BalancesList.js +++ b/src/components/BalancesList.js @@ -230,14 +230,10 @@ export function BalanceListItem({ publicKey, expandable }) { flexDirection: 'column', }} > - {price === undefined ? ( - <>{/* Loading */} - ) : price !== null ? ( + {price && ( ${((amount / Math.pow(10, decimals)) * price).toFixed(2)} - ) : ( - N/A )}