Skip to content

Commit

Permalink
Revert lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Reckless-Satoshi committed Oct 16, 2022
1 parent ded1bdb commit f3d36fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mobile/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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});})();`,
);
Expand Down Expand Up @@ -119,7 +119,7 @@ const App = () => {
if (state.isInternetReachable) {
try {
daemonStatus = await torClient.daemon.getDaemonStatus();
} catch { }
} catch {}
}

injectMessage({
Expand Down

0 comments on commit f3d36fb

Please sign in to comment.