Fix fetchInfo android

This commit is contained in:
Reckless_Satoshi 2023-04-10 04:42:17 -07:00
parent 26a4d3860d
commit 72f620fee4
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -335,9 +335,11 @@ export const AppContextProvider = ({
useEffect(() => { useEffect(() => {
if (open.stats || open.coordinator || info.coordinatorVersion == 'v?.?.?') { if (open.stats || open.coordinator || info.coordinatorVersion == 'v?.?.?') {
if (window.NativeRobosats === undefined || torStatus == '"Done"') {
fetchInfo(); fetchInfo();
} }
}, [open.stats, open.coordinator, open.exchange]); }
}, [open.stats, open.coordinator]);
useEffect(() => { useEffect(() => {
// Sets Setting network from coordinator API param if accessing via web // Sets Setting network from coordinator API param if accessing via web