diff --git a/pages/[address].vue b/pages/[address].vue index 7b4432f..89564fd 100644 --- a/pages/[address].vue +++ b/pages/[address].vue @@ -156,9 +156,7 @@ const detectedNetworks = computed(() => [ ...new Set( taskResults.value.flatMap(({ networkResults }) => { if (networkResults) { - return Object - .keys(networkResults) - .filter( + return Object.keys(networkResults).filter( (network) => !!networkResults[network].metadata ); } @@ -181,6 +179,15 @@ onMounted(async () => { return; } + if (address.value) { + mainnetProvider + .lookupAddress(address.value) + .then(async (result) => { + ens.value = result; + }) + .catch((err) => {}); + } + for (let index = 0; index < tasks.length; index++) { const task = tasks[index]; @@ -228,10 +235,6 @@ onMounted(async () => { : "error"; taskResults.value[index].loading = false; } - - if (address.value) { - ens.value = await mainnetProvider.lookupAddress(address.value); - } });