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(); 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) {