Skip to content

Commit cf6a624

Browse files
committed
fix check
1 parent 2431383 commit cf6a624

File tree

1 file changed

+21
-20
lines changed
  • frontend/src/components/products-list

1 file changed

+21
-20
lines changed

frontend/src/components/products-list/index.tsx

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -90,26 +90,27 @@ export const ProductsList = ({
9090
</>
9191
)}
9292

93-
{visibleCategories.includes(CheckoutCategory.Gadgets) && tshirts && (
94-
<>
95-
{showHeadings && (
96-
<GroupHeading>
97-
<FormattedMessage id="tickets.productsList.tshirtTitle" />
98-
</GroupHeading>
99-
)}
100-
{tshirts.map((tshirt) => (
101-
<Fragment key={tshirt.id}>
102-
<TicketRow
103-
key={tshirt.id}
104-
icon="tshirt"
105-
iconBackground="yellow"
106-
ticket={tshirt}
107-
/>
108-
<Spacer size="small" />
109-
</Fragment>
110-
))}
111-
</>
112-
)}
93+
{visibleCategories.includes(CheckoutCategory.Gadgets) &&
94+
tshirts.length > 0 && (
95+
<>
96+
{showHeadings && (
97+
<GroupHeading>
98+
<FormattedMessage id="tickets.productsList.tshirtTitle" />
99+
</GroupHeading>
100+
)}
101+
{tshirts.map((tshirt) => (
102+
<Fragment key={tshirt.id}>
103+
<TicketRow
104+
key={tshirt.id}
105+
icon="tshirt"
106+
iconBackground="yellow"
107+
ticket={tshirt}
108+
/>
109+
<Spacer size="small" />
110+
</Fragment>
111+
))}
112+
</>
113+
)}
113114

114115
{visibleCategories.includes(CheckoutCategory.SocialEvents) &&
115116
socialEvents.length > 0 && (

0 commit comments

Comments
 (0)