From 671cd6e96d203e1b1442832414f9a3f7cd5bb12a Mon Sep 17 00:00:00 2001 From: Filipe Medeiros Date: Sun, 28 Nov 2021 05:20:44 +0000 Subject: [PATCH] fix: ui --- components/Balance.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/Balance.tsx b/components/Balance.tsx index e6ff6ca..7522709 100644 --- a/components/Balance.tsx +++ b/components/Balance.tsx @@ -58,7 +58,14 @@ const Balance: FC = ({ className }) => { )} > {showXnoBalance ? ( - <> {xnoBalanceDisplay === 'small' ? '<0.01' : xnoBalanceDisplay} + <> + {' '} + {account?.balance === null + ? '0.00' + : xnoBalanceDisplay === 'small' + ? '<0.01' + : xnoBalanceDisplay} + ) : ( 'NO' )}