mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-10-02 01:40:53 +00:00
Fix nip05 verification failing catastrophically
This commit is contained in:
parent
16982f3453
commit
1fdb64a7b7
@ -11,8 +11,9 @@ const VerificationCheck: Component<{ user: PrimalUser | undefined, id?: string }
|
|||||||
const [isVerified, setIsVerified] = createSignal(true);
|
const [isVerified, setIsVerified] = createSignal(true);
|
||||||
|
|
||||||
const isVerifiedByPrimal = () => {
|
const isVerifiedByPrimal = () => {
|
||||||
return isVerified() &&
|
const nip05 = props.user?.nip05;
|
||||||
props.user?.nip05.endsWith('primal.net');
|
|
||||||
|
return isVerified() && nip05 && nip05.endsWith('primal.net');
|
||||||
}
|
}
|
||||||
|
|
||||||
const checkVerification = () => {
|
const checkVerification = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user