Skip to content

Commit

Permalink
chore: clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
olgakup committed Jan 3, 2025
1 parent f508fe9 commit cdc8bb8
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions packages/extension/src/ui/action/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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[]) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ const toCustomNetwork = () => {
const toNetworkList = () => {
isNetworkList.value = true;
// emit('update:pinnNetworks');
};
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit cdc8bb8

Please sign in to comment.