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({