Skip to content

Commit

Permalink
fix(primary name): check for wallet on primary name check for isOwner
Browse files Browse the repository at this point in the history
  • Loading branch information
atticusofsparta committed Jan 22, 2025
1 parent c63f3f6 commit 3dc5c0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/pages/ManageDomain/ManageDomain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ function ManageDomain() {
const { data: domainData } = useDomainInfo({ domain: name });
const [{ walletAddress }] = useWalletState();

const isOwner = walletAddress?.toString() === domainData?.info?.Owner;
const isOwner = walletAddress
? walletAddress?.toString() === domainData?.info?.Owner
: false;

const [logoId, setLogoId] = useState<string | undefined>();

Expand Down

0 comments on commit 3dc5c0c

Please sign in to comment.