fix(sign): allow signing without marks, hide loading and show toast for prevSig error
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 36s
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 36s
This commit is contained in:
parent
a8020e6db2
commit
20d1170f7d
@ -542,10 +542,13 @@ export const SignPage = () => {
|
|||||||
setLoadingSpinnerDesc('Signing nostr event')
|
setLoadingSpinnerDesc('Signing nostr event')
|
||||||
|
|
||||||
const prevSig = getPrevSignersSig(hexToNpub(usersPubkey!))
|
const prevSig = getPrevSignersSig(hexToNpub(usersPubkey!))
|
||||||
if (!prevSig) return
|
if (!prevSig) {
|
||||||
|
setIsLoading(false)
|
||||||
|
toast.error('Previous signature is invalid')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
const marks = getSignerMarksForMeta()
|
const marks = getSignerMarksForMeta() || []
|
||||||
if (!marks) return
|
|
||||||
|
|
||||||
const signedEvent = await signEventForMeta({ prevSig, marks })
|
const signedEvent = await signEventForMeta({ prevSig, marks })
|
||||||
if (!signedEvent) return
|
if (!signedEvent) return
|
||||||
|
Loading…
Reference in New Issue
Block a user