From 5d745f734d974b12a056145169a6944a908b1418 Mon Sep 17 00:00:00 2001 From: Phillip Lang Martinez Date: Thu, 18 Jul 2024 11:22:51 -0400 Subject: [PATCH] change position of fetch balance --- src/App.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 4e4d9a9..a01a4eb 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -443,7 +443,6 @@ function App() { } }); getBalanceFunc(); - getLtcBalanceFunc() } catch (error) { } }, [address]); @@ -453,6 +452,12 @@ function App() { }; }, []); + useEffect(()=> { + if(authenticatedMode === 'ltc' && !ltcBalanceLoading && ltcBalance === null ){ + getLtcBalanceFunc() + } + }, [authenticatedMode]) + const confirmPasswordToDownload = async () => { try { setWalletToBeDownloadedError("");