Skip to content

Commit

Permalink
Fix nip05 verification failing catastrophically
Browse files Browse the repository at this point in the history
  • Loading branch information
moysa committed Sep 4, 2023
1 parent 16982f3 commit 1fdb64a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/VerificationCheck/VerificationCheck.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ const VerificationCheck: Component<{ user: PrimalUser | undefined, id?: string }
const [isVerified, setIsVerified] = createSignal(true);

const isVerifiedByPrimal = () => {
return isVerified() &&
props.user?.nip05.endsWith('primal.net');
const nip05 = props.user?.nip05;

return isVerified() && nip05 && nip05.endsWith('primal.net');
}

const checkVerification = () => {
Expand Down

0 comments on commit 1fdb64a

Please sign in to comment.