From 72f620fee4046fb5035936e41869d0d1d27a9448 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Mon, 10 Apr 2023 04:42:17 -0700 Subject: [PATCH] Fix fetchInfo android --- frontend/src/contexts/AppContext.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/contexts/AppContext.tsx b/frontend/src/contexts/AppContext.tsx index bc960e32..a2ee5e7e 100644 --- a/frontend/src/contexts/AppContext.tsx +++ b/frontend/src/contexts/AppContext.tsx @@ -335,9 +335,11 @@ export const AppContextProvider = ({ useEffect(() => { if (open.stats || open.coordinator || info.coordinatorVersion == 'v?.?.?') { - fetchInfo(); + if (window.NativeRobosats === undefined || torStatus == '"Done"') { + fetchInfo(); + } } - }, [open.stats, open.coordinator, open.exchange]); + }, [open.stats, open.coordinator]); useEffect(() => { // Sets Setting network from coordinator API param if accessing via web