fix nip-05 verification

This commit is contained in:
2023-12-08 08:01:06 +07:00
parent f2b1458bd2
commit 8b434d577f

View File

@@ -40,12 +40,9 @@ export const NIP05 = memo(function NIP05({
const data: NIP05 = await res.json();
if (data.names) {
if (
data.names[localPath.toLowerCase()] !== pubkey ||
data.names[localPath] !== pubkey
)
return false;
return true;
if (data.names[localPath.toLowerCase()] === pubkey) return true;
if (data.names[localPath] === pubkey) return true;
return false;
}
return false;
} catch (e) {