Skip to content

Commit

Permalink
dont check just the first question, check all of them
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasheriques committed Dec 20, 2024
1 parent 5984f31 commit bed5419
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions frontend/src/scenes/surveys/SurveyEdit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ import './EditSurvey.scss'

import { DndContext } from '@dnd-kit/core'
import { SortableContext, verticalListSortingStrategy } from '@dnd-kit/sortable'
import { IconInfo } from '@posthog/icons'
import { IconLock, IconPlus, IconTrash } from '@posthog/icons'
import { IconInfo, IconLock, IconPlus, IconTrash } from '@posthog/icons'
import {
LemonButton,
LemonCalendarSelect,
Expand Down Expand Up @@ -538,12 +537,12 @@ export default function SurveyEdit(): JSX.Element {
appearance={value || defaultSurveyAppearance}
hasBranchingLogic={hasBranchingLogic}
deleteBranchingLogic={deleteBranchingLogic}
customizeRatingButtons={
survey.questions[0].type === SurveyQuestionType.Rating
}
customizePlaceholderText={
survey.questions[0].type === SurveyQuestionType.Open
}
customizeRatingButtons={survey.questions.some(
(question) => question.type === SurveyQuestionType.Rating
)}
customizePlaceholderText={survey.questions.some(
(question) => question.type === SurveyQuestionType.Open
)}
onAppearanceChange={(appearance) => {
onChange(appearance)
}}
Expand Down

0 comments on commit bed5419

Please sign in to comment.