Skip to content

Commit

Permalink
fix: added data wrap to subs cart request
Browse files Browse the repository at this point in the history
  • Loading branch information
rostyk-kanafotskyy committed Sep 9, 2024
1 parent d9c98da commit cd4f96f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ export const useAddSubscriptionItemToCart = (
return useMutation({
mutationFn: async ({ additionalHeaders, ...req }) => {
const body = {
type: "subscription_item",
...req,
data: {
type: "subscription_item",
...req,
}
}

return client.request.send(
Expand Down

0 comments on commit cd4f96f

Please sign in to comment.