We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d77fa5 commit e3c236dCopy full SHA for e3c236d
src/components/OrderSummary/OrderSummary.tsx
@@ -77,7 +77,7 @@ export const OrderSummary = component$(() => {
77
)}
78
</div>
79
80
- {store.cart.promoCodes.length > 0 && (
+ {(store.cart.promoCodes || []).length > 0 && (
81
<div class='flex flex-col py-4 border-t border-neutral-200'>
82
{store.cart.promoCodes.map(({ id, name, value }) => (
83
<div key={id} class='flex justify-between items-center mb-2'>
0 commit comments