From cdc8bb8cbfce6737e8c805460dba378e0f011a86 Mon Sep 17 00:00:00 2001 From: olgakup <16910687+olgakup@users.noreply.github.com> Date: Thu, 2 Jan 2025 17:10:55 -0800 Subject: [PATCH] chore: clean code --- packages/extension/src/ui/action/App.vue | 6 ------ .../extension/src/ui/action/views/add-network/index.vue | 1 - .../ui/action/views/add-network/views/add-network-list.vue | 5 ----- 3 files changed, 12 deletions(-) diff --git a/packages/extension/src/ui/action/App.vue b/packages/extension/src/ui/action/App.vue index cc0563845..f09661f04 100644 --- a/packages/extension/src/ui/action/App.vue +++ b/packages/extension/src/ui/action/App.vue @@ -207,12 +207,6 @@ const setActiveNetworks = async () => { network => !pinnedNetworkNames.includes(network.name), ), ]; - // networks.value = [ - // ...networks.value.filter(network => !network.isTestNetwork), - // ]; - // if (!pinnedNetworks.value.includes(currentNetwork.value)) { - // setNetwork(pinnedNetworks.value[0]); - // } }; const updateNetworkOrder = (newOrder: BaseNetwork[]) => { diff --git a/packages/extension/src/ui/action/views/add-network/index.vue b/packages/extension/src/ui/action/views/add-network/index.vue index 7df2bff54..1542b9be7 100644 --- a/packages/extension/src/ui/action/views/add-network/index.vue +++ b/packages/extension/src/ui/action/views/add-network/index.vue @@ -42,7 +42,6 @@ const toCustomNetwork = () => { const toNetworkList = () => { isNetworkList.value = true; - // emit('update:pinnNetworks'); }; diff --git a/packages/extension/src/ui/action/views/add-network/views/add-network-list.vue b/packages/extension/src/ui/action/views/add-network/views/add-network-list.vue index b68e37841..fc4591379 100644 --- a/packages/extension/src/ui/action/views/add-network/views/add-network-list.vue +++ b/packages/extension/src/ui/action/views/add-network/views/add-network-list.vue @@ -172,12 +172,7 @@ const onTestnetToggle = async ( const onNetworkDeleted = async (chainId: string) => { await customNetworksState.deleteEVMNetwork(chainId); - - // allTestNets.value = await getAllNetworksAndStatus(); - // hasMoreThanOneActiveNetwork.value = - // allTestNets.value.filter(net => net.isActive).length > 1; await setNetworkLists(); - //TODO: emit('update:pinNetwork', chainId, false); emit('update:pinNetwork', chainId, false); };