fix nip-05 verification
This commit is contained in:
@@ -40,12 +40,9 @@ export const NIP05 = memo(function NIP05({
|
|||||||
|
|
||||||
const data: NIP05 = await res.json();
|
const data: NIP05 = await res.json();
|
||||||
if (data.names) {
|
if (data.names) {
|
||||||
if (
|
if (data.names[localPath.toLowerCase()] === pubkey) return true;
|
||||||
data.names[localPath.toLowerCase()] !== pubkey ||
|
if (data.names[localPath] === pubkey) return true;
|
||||||
data.names[localPath] !== pubkey
|
return false;
|
||||||
)
|
|
||||||
return false;
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user