From fa48002598b5d2466f96b68183ebbe82f8f82072 Mon Sep 17 00:00:00 2001 From: Phani Raj Date: Mon, 1 Jul 2024 14:35:36 -0500 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Juraj Majerik --- frontend/src/scenes/surveys/surveyLogic.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frontend/src/scenes/surveys/surveyLogic.tsx b/frontend/src/scenes/surveys/surveyLogic.tsx index fe7535ac5a501..d4393d237e11f 100644 --- a/frontend/src/scenes/surveys/surveyLogic.tsx +++ b/frontend/src/scenes/surveys/surveyLogic.tsx @@ -882,12 +882,7 @@ export const surveyLogic = kea([ surveyRepeatedActivationAvailable: [ (s) => [s.survey], (survey: Survey): boolean => - !!( - survey.conditions && - survey.conditions?.events && - survey.conditions?.events?.values && - survey.conditions?.events?.values.length > 0 - ), +!!(survey.conditions?.events?.values?.length > 0), ], hasTargetingSet: [ (s) => [s.survey],