mirror of
https://github.com/Instadapp/smart-lookup.git
synced 2024-07-29 22:38:20 +00:00
Update [address].vue
This commit is contained in:
parent
84f15e2b2f
commit
0707b305c8
|
@ -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);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user