From 0434db9d5800d8de708de20a5af8cbab0482ea06 Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Tue, 15 Aug 2023 12:37:51 +0800 Subject: [PATCH] Use provided exitAction param for exit survey mutation --- studio/data/feedback/exit-survey-send.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/studio/data/feedback/exit-survey-send.ts b/studio/data/feedback/exit-survey-send.ts index f145695e406..d95a8422356 100644 --- a/studio/data/feedback/exit-survey-send.ts +++ b/studio/data/feedback/exit-survey-send.ts @@ -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