From 0dc9c4b6b5d09188f5936813ee2458b464785aa5 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Wed, 15 Feb 2023 16:16:03 +0100 Subject: [PATCH] Check if context starts with VM --- libs/remix-ui/run-tab/src/lib/actions/events.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/remix-ui/run-tab/src/lib/actions/events.ts b/libs/remix-ui/run-tab/src/lib/actions/events.ts index 2fa196485c..ed686bb887 100644 --- a/libs/remix-ui/run-tab/src/lib/actions/events.ts +++ b/libs/remix-ui/run-tab/src/lib/actions/events.ts @@ -24,7 +24,7 @@ export const setupEvents = (plugin: RunTab, dispatch: React.Dispatch) => { plugin.blockchain.event.register('contextChanged', (context, silent) => { dispatch(resetProxyDeployments()) - if (context !== 'vm') getNetworkProxyAddresses(plugin, dispatch) + if (!context.startsWith('vm')) getNetworkProxyAddresses(plugin, dispatch) setFinalContext(plugin, dispatch) })