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