mirror of
https://github.com/fiatjaf/nak.git
synced 2024-11-25 00:59:08 -05:00
it's evt.sig, not evt.signature.
This commit is contained in:
parent
143c7fe000
commit
7debc6fd2d
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user