Revert lint fix

This commit is contained in:
Reckless_Satoshi 2022-10-16 10:04:10 -07:00
parent ded1bdb764
commit f3d36fb95e
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

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