We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99b5767 commit 4ac4571Copy full SHA for 4ac4571
web/src/components/common/Clarification.tsx
@@ -76,7 +76,15 @@ export const Clarification = () => {
76
}
77
78
const handleCancel = () => {
79
- dispatch(toggleClarification({show: false, questions: []}))
+ clarification.questions.forEach((_, index) => {
80
+ // For each question from currentQuestionIndex, set the answer to "Figure it out"
81
+ if (index >= currentQuestionIndex) {
82
+ dispatch(setClarificationAnswer({
83
+ questionIndex: index,
84
+ answer: "Figure it out"
85
+ }))
86
+ }
87
+ })
88
89
90
return (
0 commit comments