From d88d16940eba9c31e663847a4f7d62088cf7e62e Mon Sep 17 00:00:00 2001 From: Benjamin POCHAT Date: Sun, 1 Dec 2024 23:02:28 +0100 Subject: [PATCH] fix cookie too large error --- frontend/app/src/domains/sale/views/CustomerOrderForm.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/app/src/domains/sale/views/CustomerOrderForm.tsx b/frontend/app/src/domains/sale/views/CustomerOrderForm.tsx index 281f070..55a9eb1 100644 --- a/frontend/app/src/domains/sale/views/CustomerOrderForm.tsx +++ b/frontend/app/src/domains/sale/views/CustomerOrderForm.tsx @@ -148,6 +148,7 @@ export default function CustomerOrderForm() { function validateItems() { setCompletedSteps([...completedSteps, SET_ITEMS_STEP]) setActiveStep(AUTHENTICATION_STEP) + order?.items?.forEach(item => item.packageLot.photo = '') setCookie('pendingOrder', order, {path: "/", maxAge: 3600}) }