diff --git a/.gitignore b/.gitignore index bcbf6047a..50d4285ba 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,7 @@ yarn-debug.log* yarn-error.log* # local env files +.env .env.local .env.development.local .env.test.local diff --git a/components/cart/CartItem/CartItem.tsx b/components/cart/CartItem/CartItem.tsx index 493374f0f..2769ac715 100644 --- a/components/cart/CartItem/CartItem.tsx +++ b/components/cart/CartItem/CartItem.tsx @@ -95,20 +95,20 @@ const CartItem = ({
{/** TODO: Replace this. No `path` found at Cart */} - + {item.name} {item.options && item.options.length > 0 ? ( -
- {item.options.map((option:ItemOption) => - - {`${option.name}: ${option.value}`} +
+ {item.options.map((option:ItemOption, i: number) => + + {option.value}{ i === item.options.length -1 ? "" : ", " } )}
) : null} -
+