Merge pull request #139 from v0l/fix-note-send

fix: hide note creator on send
This commit is contained in:
Kieran 2023-01-25 18:18:34 +00:00 committed by GitHub
commit 6c0469d89f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -35,6 +35,7 @@ export function NoteCreator(props: NoteCreatorProps) {
console.debug("Sending note: ", ev);
publisher.broadcast(ev);
setNote("");
setShow(false);
if (typeof props.onSend === "function") {
props.onSend();
}