Skip to content

Commit e3c236d

Browse files
committed
add fallback
1 parent 0d77fa5 commit e3c236d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/OrderSummary/OrderSummary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ export const OrderSummary = component$(() => {
7777
)}
7878
</div>
7979
</div>
80-
{store.cart.promoCodes.length > 0 && (
80+
{(store.cart.promoCodes || []).length > 0 && (
8181
<div class='flex flex-col py-4 border-t border-neutral-200'>
8282
{store.cart.promoCodes.map(({ id, name, value }) => (
8383
<div key={id} class='flex justify-between items-center mb-2'>

0 commit comments

Comments
 (0)