diff --git a/plugin/src/components/DevnetAccountSelector/index.tsx b/plugin/src/components/DevnetAccountSelector/index.tsx index f0068aad..3092f4d4 100644 --- a/plugin/src/components/DevnetAccountSelector/index.tsx +++ b/plugin/src/components/DevnetAccountSelector/index.tsx @@ -99,6 +99,7 @@ const DevnetAccountSelector: React.FC = () => { setAvailableDevnetAccounts(accounts) } } catch (e) { + setAvailableDevnetAccounts([]) await remixClient.terminal.log({ type: 'error', value: `Failed to get accounts information from ${devnet.url}` @@ -110,6 +111,7 @@ const DevnetAccountSelector: React.FC = () => { useEffect(() => { setTimeout(() => { if (!isDevnetAlive) { + setAvailableDevnetAccounts([]) return } refreshDevnetAccounts().catch(e => { @@ -179,7 +181,7 @@ const DevnetAccountSelector: React.FC = () => { { setDropdownControl(e) }}>
-