mirror of
https://github.com/PrimalHQ/primal-web-app.git
synced 2024-10-03 02:10:55 +00:00
Handle bad nip05 values
This commit is contained in:
parent
aff7bf0d8a
commit
a38ac61082
@ -17,7 +17,7 @@ const VerificationCheck: Component<{
|
|||||||
const isVerifiedByPrimal = () => {
|
const isVerifiedByPrimal = () => {
|
||||||
const nip05 = props.user?.nip05;
|
const nip05 = props.user?.nip05;
|
||||||
|
|
||||||
return isVerified() && nip05 && nip05.endsWith('primal.net');
|
return isVerified() && nip05 && nip05.endsWith && nip05.endsWith('primal.net');
|
||||||
}
|
}
|
||||||
|
|
||||||
const checkVerification = () => {
|
const checkVerification = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user