Skip to content

Commit

Permalink
fix: rendering lands for address without starkname
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdv committed Oct 2, 2023
1 parent 35391b9 commit 5901b35
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pages/[addressOrDomain].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,17 @@ const AddressOrDomain: NextPage = () => {
setIsOwner(false);
setInitProfile(true);
}
})
.catch(() => {
setIdentity({
starknet_id: "0",
addr: addressOrDomain,
domain: minifyAddress(addressOrDomain),
is_owner_main: false,
});
setInitProfile(true);
if (hexToDecimal(addressOrDomain) === hexToDecimal(address))
setIsOwner(true);
});
} else {
setNotFound(true);
Expand Down

0 comments on commit 5901b35

Please sign in to comment.