Skip to content

Commit

Permalink
[TAN-680] Show PhaseFilter where there is no phase
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-cit committed Dec 14, 2023
1 parent 85f036c commit d8b1c5f
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const SurveyResultsWidgetSettings = () => {
onProjectFilter={handleProjectFilter}
/>

{projectId !== undefined && phaseId !== undefined && (
{projectId !== undefined && (
<>
<PhaseFilter
label={formatMessage(messages.surveyPhases)}
Expand All @@ -169,11 +169,13 @@ const SurveyResultsWidgetSettings = () => {
participationMethod="native_survey"
onPhaseFilter={handlePhaseFilter}
/>
<QuestionFilter
phaseId={phaseId}
shownQuestions={shownQuestions}
onToggleQuestion={handleQuestionToggle}
/>
{phaseId && (
<QuestionFilter
phaseId={phaseId}
shownQuestions={shownQuestions}
onToggleQuestion={handleQuestionToggle}
/>
)}
</>
)}
</Box>
Expand Down

0 comments on commit d8b1c5f

Please sign in to comment.