Skip to content

Commit

Permalink
fix wrong params
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Oct 16, 2023
1 parent 5590a47 commit 8cfa997
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/campaign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ const campaignApi = createApi({
transformResponse: (data: any) => formatTxs(data?.data || []),
}),
joinCampaign: builder.mutation<any, { token: string | null; address: string; recaptchaId: number }>({
query: ({ recaptchaId, ...data }) => ({
data,
query: ({ recaptchaId, ...body }) => ({
body,
method: 'POST',
url: `/${recaptchaId}/participants`,
}),
Expand Down

0 comments on commit 8cfa997

Please sign in to comment.