Skip to content

Commit

Permalink
fix: Use the constant shouldSplitItem value
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfp13 committed Nov 4, 2024
1 parent 2690b8b commit 325e02e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/api/src/platforms/vtex/resolvers/validateCart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ export const validateCart = async (
joinItems
)
if (orderNumber) {
return orderFormToCart(newOrderForm, skuLoader, order.shouldSplitItem)
return orderFormToCart(newOrderForm, skuLoader, shouldSplitItem)
}
}

Expand Down Expand Up @@ -462,5 +462,5 @@ export const validateCart = async (
}

// Step6: There were changes, convert orderForm to StoreCart
return orderFormToCart(updatedOrderForm, skuLoader, order.shouldSplitItem)
return orderFormToCart(updatedOrderForm, skuLoader, shouldSplitItem)
}

0 comments on commit 325e02e

Please sign in to comment.