Skip to content

Commit 9168132

Browse files
committed
use body instead of query to apply a coupon
1 parent 3e68ed7 commit 9168132

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/settings/organization/billing/coupon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function Coupon() {
2626

2727
const mutation = useMutation({
2828
...useApiMutationFn('redeemCoupon', ({ code }: FormValues<typeof form>) => ({
29-
query: { code },
29+
body: { code },
3030
})),
3131
onSuccess() {
3232
form.reset();

0 commit comments

Comments
 (0)