From b97089b8a6dcbacf209cb43d991f5cf7338a5380 Mon Sep 17 00:00:00 2001 From: Zach Waterfield Date: Wed, 7 Aug 2024 10:22:12 -0400 Subject: [PATCH] chore: update the dismissed survey logic (#24224) --- frontend/src/scenes/billing/billingProductLogic.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/frontend/src/scenes/billing/billingProductLogic.ts b/frontend/src/scenes/billing/billingProductLogic.ts index 1e40b78d9b76d..9b0e16a2f75e4 100644 --- a/frontend/src/scenes/billing/billingProductLogic.ts +++ b/frontend/src/scenes/billing/billingProductLogic.ts @@ -302,13 +302,8 @@ export const billingProductLogic = kea([ actions.setSurveyID('') }, deactivateProductSuccess: async (_, breakpoint) => { - if (!values.unsubscribeError) { - const hasSurveyReasons = values.surveyResponse['$survey_response_2']?.length > 0 - const textAreaNotEmpty = values.surveyResponse['$survey_response']?.length > 0 - const shouldReportSurvey = hasSurveyReasons || textAreaNotEmpty - shouldReportSurvey - ? actions.reportSurveySent(values.surveyID, values.surveyResponse) - : actions.reportSurveyDismissed(values.surveyID) + if (!values.unsubscribeError && values.surveyID) { + actions.reportSurveySent(values.surveyID, values.surveyResponse) } await breakpoint(200) location.reload()