Check if context starts with VM

pull/3390/head^2
ioedeveloper 2 years ago committed by Aniket
parent d362fe8c6c
commit 0dc9c4b6b5
  1. 2
      libs/remix-ui/run-tab/src/lib/actions/events.ts

@ -24,7 +24,7 @@ export const setupEvents = (plugin: RunTab, dispatch: React.Dispatch<any>) => {
plugin.blockchain.event.register('contextChanged', (context, silent) => { plugin.blockchain.event.register('contextChanged', (context, silent) => {
dispatch(resetProxyDeployments()) dispatch(resetProxyDeployments())
if (context !== 'vm') getNetworkProxyAddresses(plugin, dispatch) if (!context.startsWith('vm')) getNetworkProxyAddresses(plugin, dispatch)
setFinalContext(plugin, dispatch) setFinalContext(plugin, dispatch)
}) })

Loading…
Cancel
Save