Skip to content

Commit d04ed3f

Browse files
PBnicadclaude
andcommitted
fix: refresh comments immediately after reply submission
Instead of waiting for user to click the alert confirmation, refresh comments immediately after successful reply submission. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8c90b78 commit d04ed3f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

client/src/page/feed.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -531,10 +531,9 @@ function ReplyInput({
531531
} else {
532532
setContent("");
533533
setError("");
534-
showAlert(t("comment.success"), () => {
535-
onRefresh();
536-
setSubmitting(false);
537-
});
534+
onRefresh();
535+
setSubmitting(false);
536+
showAlert(t("comment.success"));
538537
}
539538
});
540539
}

0 commit comments

Comments
 (0)