Merge pull request #16328 from supabase/hotfix/exit-survey-all-classified-as-downgrades

Fix exit surveys all getting classified as downgrades
This commit is contained in:
Joshen Lim authored and GitHub committed 2023-08-08 16:56:54 +08:00
commit 56a357c7ec
4 files changed
+4

No files matched your search

@@ -98,6 +98,7 @@ const ExitSurveyModal = ({ visible, onClose }: ExitSurveyModalProps) => {
projectRef,
reasons: selectedReasons.reduce((a, b) => `${a}- ${b}\n`, ''),
message,
exitAction: 'downgrade',
})
} finally {
}
@@ -93,6 +93,7 @@ const ExitSurveyModal = ({ visible, subscription, onClose }: ExitSurveyModalProp
orgSlug: slug,
reasons: selectedReasons.reduce((a, b) => `${a}- ${b}\n`, ''),
message,
exitAction: 'downgrade',
})
} finally {
}
@@ -77,6 +77,7 @@ const DeleteProjectButton = ({ type = 'danger' }: DeleteProjectButtonProps) => {
projectRef,
message,
reasons: selectedReasons.reduce((a, b) => `${a}- ${b}\n`, ''),
exitAction: 'delete',
})
}
+1
View File
@@ -10,6 +10,7 @@ export type SendDowngradeFeedbackVariables = {
orgSlug?: string
reasons: string
message: string
exitAction: 'downgrade' | 'delete'
}
export async function sendDowngradeFeedback({