From b19af60d2e7c5b2955dbcec7f31e975ca8d12961 Mon Sep 17 00:00:00 2001 From: lianahus Date: Wed, 1 Sep 2021 12:42:00 +0200 Subject: [PATCH] linter --- libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx b/libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx index 0fcf41b280..e79ad8910c 100644 --- a/libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx +++ b/libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx @@ -39,7 +39,6 @@ export const DebuggerUI = (props: DebuggerUIProps) => { return unLoad() }, []) - debuggerModule.onDebugRequested((hash) => { if (hash) debug(hash) }) @@ -68,7 +67,7 @@ export const DebuggerUI = (props: DebuggerUIProps) => { const providerChanged = () => { debuggerModule.onEnvChanged((provider) => { setState(prevState => { - const isLocalNodeUsed = provider !== 'vm' && provider != 'injected' + const isLocalNodeUsed = provider !== 'vm' && provider !== 'injected' return { ...prevState, isLocalNodeUsed: isLocalNodeUsed } }) }) @@ -288,7 +287,6 @@ export const DebuggerUI = (props: DebuggerUIProps) => { registerEvent: state.debugger && state.debugger.vmDebuggerLogic ? state.debugger.vmDebuggerLogic.event.register.bind(state.debugger.vmDebuggerLogic.event) : null, triggerEvent: state.debugger && state.debugger.vmDebuggerLogic ? state.debugger.vmDebuggerLogic.event.trigger.bind(state.debugger.vmDebuggerLogic.event) : null } - const isLocalNodeUsed = async () => { return await debuggerModule.isLocalNode()} return (