From 474ec536d7c8310406194f26938c76d716de7939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaume=20Sol=C3=ADs?= Date: Tue, 16 Apr 2024 13:15:40 +0200 Subject: [PATCH] cambiar id por itemFk --- src/hooks/useCheckoutForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useCheckoutForm.js b/src/hooks/useCheckoutForm.js index 694ec52..a9d3f1d 100644 --- a/src/hooks/useCheckoutForm.js +++ b/src/hooks/useCheckoutForm.js @@ -197,7 +197,7 @@ export function useCheckoutForm() { const handleFetchPaymentMethod = async ({ type, values }) => { try { - const productsId = cart.map((item) => item.id); + const productsId = cart.map((item) => item.itemFk); const cartItensData = cart.map(({ id, message, ...rest }) => ({ id, message: message || "",