summaryrefslogtreecommitdiff
path: root/web/dartboat_wasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'web/dartboat_wasm.c')
-rw-r--r--web/dartboat_wasm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/dartboat_wasm.c b/web/dartboat_wasm.c
index 322127a..a083780 100644
--- a/web/dartboat_wasm.c
+++ b/web/dartboat_wasm.c
@@ -533,6 +533,7 @@ void prompt_handle_submit()
return;
char *str = prompt_get();
+ prompt_handle_clear();
if (*str) {
if (pm == PM_VISIT)
user_visit(atoi(str));
@@ -543,7 +544,6 @@ void prompt_handle_submit()
}
free(str);
- prompt_handle_clear();
}
void prompt_handle_submit_rem()
@@ -552,10 +552,10 @@ void prompt_handle_submit_rem()
return;
char *str = prompt_get();
+ prompt_handle_clear();
if (*str)
user_visit_to_rem(atoi(str));
free(str);
- prompt_handle_clear();
}
void prompt_handle_undo()