From a38ac6108268ca87baa18fd0eed417bc52c30331 Mon Sep 17 00:00:00 2001 From: Bojan Mojsilovic Date: Fri, 12 Jan 2024 13:47:14 +0100 Subject: [PATCH] Handle bad nip05 values --- src/components/VerificationCheck/VerificationCheck.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/VerificationCheck/VerificationCheck.tsx b/src/components/VerificationCheck/VerificationCheck.tsx index b7a263c..561be2e 100644 --- a/src/components/VerificationCheck/VerificationCheck.tsx +++ b/src/components/VerificationCheck/VerificationCheck.tsx @@ -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 = () => {