From 97775507410f741cfb9b427bf81f9eeea321bffb Mon Sep 17 00:00:00 2001 From: Phillip Lang Martinez Date: Thu, 18 Jul 2024 00:05:45 -0400 Subject: [PATCH] fix tofixed error --- src/App.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 77ff7b1..4e4d9a9 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -719,7 +719,7 @@ function App() { {ltcBalanceLoading && } - {ltcBalance && !ltcBalanceLoading && ( + {ltcBalance && !isNaN(+ltcBalance) && !ltcBalanceLoading && ( - {ltcBalance?.toFixed(5)} LTC + {ltcBalance} LTC - {balance?.toFixed(2)} QORT + {balance} QORT )} @@ -891,7 +891,7 @@ function App() { fontWeight: 700, }} > - {balance?.toFixed(2)} QORT + {balance} QORT @@ -960,18 +960,19 @@ function App() { - {requestBuyOrder?.crosschainAtInfo?.qortAmount} QORT + {+requestBuyOrder?.crosschainAtInfo?.qortAmount} QORT FOR