Don't lookup registration if there is none

This commit is contained in:
Alexis Sellier
2021-06-16 17:14:16 +02:00
parent 5d40c7ee93
commit 044ec510b8
+3 -1
View File
@@ -27,7 +27,9 @@
identifyAddress(address, config).then((t: AddressType) => addressType = t);
if (resolve) {
addressName = await config.provider.lookupAddress(address);
info = await getRegistration(addressName, config);
if (addressName) {
info = await getRegistration(addressName, config);
}
}
});
$: addressLabel = addressName ?? checksumAddress;