fix: consent/cta back button issue (#5201)

This commit is contained in:
Dhruwang Jariwala
2025-04-02 07:59:53 +05:30
committed by GitHub
parent d4f155b6bc
commit e347f2179a
2 changed files with 0 additions and 2 deletions
@@ -135,7 +135,6 @@ export function ConsentQuestion({
onClick={() => {
const updatedTtcObj = getUpdatedTtc(ttc, question.id, performance.now() - startTime);
setTtc(updatedTtcObj);
onSubmit({ [question.id]: value }, updatedTtcObj);
onBack();
}}
/>
@@ -107,7 +107,6 @@ export function CTAQuestion({
onClick={() => {
const updatedTtcObj = getUpdatedTtc(ttc, question.id, performance.now() - startTime);
setTtc(updatedTtcObj);
onSubmit({ [question.id]: "" }, updatedTtcObj);
onBack();
}}
/>