Handle bad nip05 values

This commit is contained in:
Bojan Mojsilovic 2024-01-12 13:47:14 +01:00
parent aff7bf0d8a
commit a38ac61082

View File

@ -17,7 +17,7 @@ const VerificationCheck: Component<{
const isVerifiedByPrimal = () => {
const nip05 = props.user?.nip05;
return isVerified() && nip05 && nip05.endsWith('primal.net');
return isVerified() && nip05 && nip05.endsWith && nip05.endsWith('primal.net');
}
const checkVerification = () => {