Merge pull request #16524 from supabase/fix/exit-action-for-exit-survey

Use provided exitAction param for exit survey mutation
This commit is contained in:
Joshen Lim authored and GitHub committed 2023-08-15 12:50:37 +08:00
commit 56b3a6e125
1 file changed
+2 -1
+2 -1
View File
@@ -18,13 +18,14 @@ export async function sendDowngradeFeedback({
orgSlug,
reasons,
message,
exitAction,
}: SendDowngradeFeedbackVariables) {
const response = await post(`${API_URL}/feedback/downgrade`, {
...(projectRef !== undefined && { projectRef }),
...(orgSlug !== undefined && { orgSlug }),
reasons,
additionalFeedback: message,
exitAction: 'downgrade',
exitAction,
})
if (response.error) throw response.error
return response