fix nip-05

This commit is contained in:
2023-12-06 10:15:41 +07:00
parent e30274dab3
commit a42a2788ea

View File

@@ -40,7 +40,7 @@ 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 (data.names[localPath] !== pubkey) return false; if (data.names[localPath.toLowerCase()] !== pubkey) return false;
return true; return true;
} }
return false; return false;