Skip to content

Commit

Permalink
fix cookie too large error
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminpochat committed Dec 1, 2024
1 parent d88d169 commit e8815cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/app/src/domains/sale/views/CustomerOrderForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ 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})
const orderLight = {...order}
orderLight.items.forEach(item => item.packageLot.photo = undefined)
orderLight.sale.productions = undefined
setCookie('pendingOrder', orderLight, {path: "/", maxAge: 3600})
}

function getAuthenticationStepLabel(): string {
Expand Down

0 comments on commit e8815cb

Please sign in to comment.