From 8cfa99751a49143479f63a9c2fd5c33b988dfcda Mon Sep 17 00:00:00 2001 From: Danh Date: Mon, 16 Oct 2023 11:37:47 +0700 Subject: [PATCH] fix wrong params --- src/services/campaign.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/campaign.ts b/src/services/campaign.ts index 117c478119..e7440c4ffa 100644 --- a/src/services/campaign.ts +++ b/src/services/campaign.ts @@ -240,8 +240,8 @@ const campaignApi = createApi({ transformResponse: (data: any) => formatTxs(data?.data || []), }), joinCampaign: builder.mutation({ - query: ({ recaptchaId, ...data }) => ({ - data, + query: ({ recaptchaId, ...body }) => ({ + body, method: 'POST', url: `/${recaptchaId}/participants`, }),