From f3d36fb95ed1768977e5b5327d76728d07411319 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi Date: Sun, 16 Oct 2022 10:04:10 -0700 Subject: [PATCH] Revert lint fix --- mobile/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/App.tsx b/mobile/App.tsx index 9785f271..a6858371 100644 --- a/mobile/App.tsx +++ b/mobile/App.tsx @@ -18,7 +18,7 @@ const App = () => { const uri = (Platform.OS === 'android' ? 'file:///android_asset/' : '') + 'Web.bundle/index.html'; const injectMessageResolve = (id: string, data?: object) => { - const json = JSON.stringify(data != null || {}); + const json = JSON.stringify(data || {}); webViewRef.current?.injectJavaScript( `(function() {window.NativeRobosats.onMessageResolve(${id}, ${json});})();`, ); @@ -119,7 +119,7 @@ const App = () => { if (state.isInternetReachable) { try { daemonStatus = await torClient.daemon.getDaemonStatus(); - } catch { } + } catch {} } injectMessage({