change position of fetch balance

This commit is contained in:
Phillip Lang Martinez 2024-07-18 11:22:51 -04:00
parent 9777550741
commit 5d745f734d

View File

@ -443,7 +443,6 @@ function App() {
} }
}); });
getBalanceFunc(); getBalanceFunc();
getLtcBalanceFunc()
} catch (error) { } } catch (error) { }
}, [address]); }, [address]);
@ -453,6 +452,12 @@ function App() {
}; };
}, []); }, []);
useEffect(()=> {
if(authenticatedMode === 'ltc' && !ltcBalanceLoading && ltcBalance === null ){
getLtcBalanceFunc()
}
}, [authenticatedMode])
const confirmPasswordToDownload = async () => { const confirmPasswordToDownload = async () => {
try { try {
setWalletToBeDownloadedError(""); setWalletToBeDownloadedError("");