diff --git a/frontend/src/scenes/surveys/surveyLogic.tsx b/frontend/src/scenes/surveys/surveyLogic.tsx index e80e865c7ec816..8dd700d5482e5d 100644 --- a/frontend/src/scenes/surveys/surveyLogic.tsx +++ b/frontend/src/scenes/surveys/surveyLogic.tsx @@ -331,12 +331,8 @@ export const surveyLogic = kea([ // Zero-fill choices that are not open-ended question.choices.forEach((choice, idx) => { - if ( - results?.length && - idx === question.choices.length - 1 && - question?.has_open_choice && - !results.some((r) => r[1] === choice) - ) { + const isOpenChoice = idx == question.choices.length - 1 && question?.has_open_choice + if (results?.length && !isOpenChoice && !results.some((r) => r[1] === choice)) { results.push([0, choice]) } })