Skip to content

Commit

Permalink
fix: Only send unsubscribe survey if response is non-empty (#18431)
Browse files Browse the repository at this point in the history
Only send unsubscribe survey if response is non-empty

Co-authored-by: Bianca Yang <[email protected]>
  • Loading branch information
xrdt and Bianca Yang authored Nov 6, 2023
1 parent df16d5b commit b161fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/scenes/billing/UnsubscribeSurveyModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const UnsubscribeSurveyModal = ({ product }: { product: BillingProductV2T
type={textAreaNotEmpty ? 'primary' : 'tertiary'}
status={textAreaNotEmpty ? 'primary' : 'muted'}
onClick={() => {
reportSurveySent(surveyID, surveyResponse)
textAreaNotEmpty && reportSurveySent(surveyID, surveyResponse)
deactivateProduct(product.type)
}}
>
Expand Down

0 comments on commit b161fdb

Please sign in to comment.