mirror of
https://github.com/vercel/commerce.git
synced 2025-07-24 10:41:23 +00:00
fix: cart bugs
This commit is contained in:
@@ -65,7 +65,7 @@ export default async function medusaRequest(
|
||||
|
||||
const reshapeCart = (cart: MedusaCart): Cart => {
|
||||
const lines = cart?.items?.map((item) => reshapeLineItem(item)) || [];
|
||||
const totalQuantity = lines.length;
|
||||
const totalQuantity = lines.reduce((a, b) => a + b.quantity, 0);
|
||||
const checkoutUrl = '/';
|
||||
const currencyCode = cart.region?.currency_code.toUpperCase() || 'USD';
|
||||
|
||||
|
Reference in New Issue
Block a user