diff --git a/frontend/src/components/products-list/index.tsx b/frontend/src/components/products-list/index.tsx index c846398346..d6100dd3f1 100644 --- a/frontend/src/components/products-list/index.tsx +++ b/frontend/src/components/products-list/index.tsx @@ -46,7 +46,7 @@ export const ProductsList = ({ const membership = products.filter( (product) => product.type === TicketType.Association, )[0]; - const tshirt = products.filter((product) => product.category === "Gadget")[0]; + const tshirts = products.filter((product) => product.category === "Gadget"); const socialEvents = products.filter( (product) => product.type === TicketType.SocialEvent, ); @@ -90,22 +90,27 @@ export const ProductsList = ({ )} - {visibleCategories.includes(CheckoutCategory.Gadgets) && tshirt && ( - <> - {showHeadings && ( - - - - )} - - - - )} + {visibleCategories.includes(CheckoutCategory.Gadgets) && + tshirts.length > 0 && ( + <> + {showHeadings && ( + + + + )} + {tshirts.map((tshirt) => ( + + + + + ))} + + )} {visibleCategories.includes(CheckoutCategory.SocialEvents) && socialEvents.length > 0 && (