show alert when no signing method is found
This commit is contained in:
@@ -57,7 +57,12 @@ export async function signEvent(loginType: string | null, event: NostrEvent): Pr
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if(window.nostr) {
|
||||
eventSigned = await window.nostr.signEvent(event);
|
||||
} else {
|
||||
alert('No signing method found.')
|
||||
return null;
|
||||
}
|
||||
}
|
||||
console.log(eventSigned);
|
||||
return eventSigned;
|
||||
|
||||
Reference in New Issue
Block a user