Skip to content

Commit 4378da9

Browse files
committed
chore: do not reset feedback
1 parent d510606 commit 4378da9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/frontend/src/pages/AiBuilder/components/ChatMessages/ChatMessageToolbar.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ export default function ChatMessageToolbar({
5050
// don't throw error if feedback submission fails
5151
// as it is not critical to the user experience
5252
} finally {
53+
// NOTE: do not reset comment here
54+
// so that user will see what they previously typed or submitted
55+
// if they attempt to submit again
5356
onClose()
54-
setComment('')
5557
toast({
5658
title: "Thank you! We've sent your feeback to the Plumber team.",
5759
status: 'success',

0 commit comments

Comments
 (0)