diff --git a/web/components/profile/delete-account-survey-modal.tsx b/web/components/profile/delete-account-survey-modal.tsx index 29fe694f..73e69626 100644 --- a/web/components/profile/delete-account-survey-modal.tsx +++ b/web/components/profile/delete-account-survey-modal.tsx @@ -8,7 +8,7 @@ import {deleteAccount} from 'web/lib/util/delete' import {ConfirmationButton} from '../buttons/confirmation-button' import {Col} from '../layout/col' import {Title} from '../widgets/title' -import {SCARCITY_DELETION_REASONS, StayInsteadOfDelete} from './stay-instead-of-delete' +import {shouldShowStayPitch, StayInsteadOfDelete} from './stay-instead-of-delete' export function DeleteAccountSurveyModal() { const [selectedReason, setSelectedReason] = useState(null) @@ -126,7 +126,7 @@ export function DeleteAccountSurveyModal() { } } - const showStayPitch = !!selectedReason && SCARCITY_DELETION_REASONS.includes(selectedReason) + const showStayPitch = shouldShowStayPitch(selectedReason) return ( + !!reason && !NO_STAY_PITCH_DELETION_REASONS.includes(reason) + function Point(props: {icon: ReactNode; title: string; body: string}) { const {icon, title, body} = props return (