diff --git a/composables/useNetwork.ts b/composables/useNetwork.ts index 8640af7..3196065 100644 --- a/composables/useNetwork.ts +++ b/composables/useNetwork.ts @@ -17,7 +17,7 @@ export const networks = [ { id: "polygon", chainId: 136, name: "Polygon", icon: PolygonSVG } ]; -export const activeNetworkId = ref(Network.Polygon); +export const activeNetworkId = ref(); export const activeNetwork = computed( () => networks.find(n => n.id === activeNetworkId.value) || networks[0] ); @@ -113,7 +113,7 @@ export function useNetwork() { onMounted( () => { //@ts-ignore - activeNetworkId.value = localStorage.getItem('network') || "polygon"; + activeNetworkId.value = localStorage.getItem('network') || "mainnet"; refreshWeb3() }) diff --git a/layouts/default.vue b/layouts/default.vue index c819b73..e0cea26 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -4,11 +4,33 @@ >
-
+
+
+ + + + +