Skip to content

Commit 6f23daa

Browse files
authored
Fix "0" text in the tickets row (#4163)
1 parent 1fc543d commit 6f23daa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/components/products-list/ticket-row.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const TicketRow = ({
6767
{ticket.description && (
6868
<CardPart contentAlign="left" background="milk" id="content">
6969
<TagsCollection>
70-
{ticket.availableUntil && (
70+
{ticket.availableUntil ? (
7171
<Tag color="success">
7272
<FormattedMessage
7373
id="order.availableUntil"
@@ -76,7 +76,7 @@ export const TicketRow = ({
7676
}}
7777
/>
7878
</Tag>
79-
)}
79+
) : null}
8080
{ticket.quantityLeft > 0 ? (
8181
<Tag color="yellow">
8282
<FormattedMessage
@@ -88,7 +88,7 @@ export const TicketRow = ({
8888
</Tag>
8989
) : null}
9090
</TagsCollection>
91-
{hasTags && <Spacer size="xs" />}
91+
{hasTags ? <Spacer size="xs" /> : null}
9292

9393
<Text size={2}>{compile(ticket.description).tree}</Text>
9494
</CardPart>

0 commit comments

Comments
 (0)