it's evt.sig, not evt.signature.

This commit is contained in:
fiatjaf 2022-02-12 20:30:18 -03:00
parent 143c7fe000
commit 7debc6fd2d

View File

@ -32,7 +32,7 @@ export default function EventSigning({value}) {
} }
}, [value, privateKey]) }, [value, privateKey])
let isValidSignature = useComputedState(async () => { let isValidSignature = useComputedState(async () => {
if (evt.id && evt.signature) { if (evt.id && evt.sig) {
try { try {
return await verifySignature(evt) return await verifySignature(evt)
} catch (err) { } catch (err) {