fix(medusa-react): useUpdatePaymentSession mutation (#1522)
This commit is contained in:
@@ -61,9 +61,8 @@ export const useUpdatePaymentSession = (
|
|||||||
) => {
|
) => {
|
||||||
const { client } = useMedusa()
|
const { client } = useMedusa()
|
||||||
return useMutation(
|
return useMutation(
|
||||||
(
|
({ data, provider_id }) =>
|
||||||
data: { provider_id: string } & StorePostCartsCartPaymentSessionUpdateReq
|
client.carts.updatePaymentSession(cartId, provider_id, { data }),
|
||||||
) => client.carts.updatePaymentSession(cartId, data.provider_id, data),
|
|
||||||
options
|
options
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user