Rebase fixup

This commit is contained in:
2023-01-15 22:59:05 +00:00
parent c7e42c1f75
commit bd247991bc
6 changed files with 18 additions and 26 deletions

View File

@ -58,9 +58,11 @@ export default function useEventPublisher() {
}
return {
broadcast: (ev: NEvent) => {
console.debug("Sending event: ", ev);
System.BroadcastEvent(ev);
broadcast: (ev: NEvent | undefined) => {
if (ev) {
console.debug("Sending event: ", ev);
System.BroadcastEvent(ev);
}
},
metadata: async (obj: UserMetadata) => {
if (pubKey) {