fix(editor): submission note sent as typed, copies purged again after sign-out
This commit is contained in:
1 parent
6471b25812
commit
5e0aa625a8
4 files changed
+22
-3
No files matched your search
@@ -36,7 +36,7 @@ export function useSubmission(reloadSheet: () => void) {
|
||||
|
||||
const submit = async () => {
|
||||
setMessage(null)
|
||||
const outcome = await useEditorStore.getState().submit(note.trim())
|
||||
const outcome = await useEditorStore.getState().submit(note)
|
||||
// The round froze the draft: the route refreshes even if this tab is gone.
|
||||
if (outcome.ok) reloadSheet()
|
||||
if (!mounted.current) return
|
||||
|
||||
Reference in new issue
Block a user