Skip to content

Commit c99c1da

Browse files
committed
omit edu price for remote
1 parent 5fe6468 commit c99c1da

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/ticket-tiers/ticket-tiers.astro

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface Feature {
1212
1313
interface TicketTierProps {
1414
title: string;
15-
educationPrice: number | string;
15+
educationPrice?: number | string;
1616
personalPrice: number | string;
1717
businessPrice: number | string;
1818
lateBusinessPrice?: number | string;
@@ -123,7 +123,6 @@ const tiers: TicketTierProps[] = [
123123
124124
{
125125
title: "Remote",
126-
educationPrice: "free",
127126
personalPrice: 80,
128127
businessPrice: 150,
129128
subtitle: "Conference days only",
@@ -167,6 +166,7 @@ const formatPrice = (price: number | string) => {
167166
<div>
168167
<Headline as="h4" id=`titer-${tier}` title={tier.title} />
169168
<div class="mt-4 space-y-2">
169+
{tier.educationPrice !== undefined && (
170170
<div>
171171
<div class="font-bold text-lg">
172172
Education:
@@ -175,7 +175,8 @@ const formatPrice = (price: number | string) => {
175175
</span>
176176
</div>
177177
</div>
178-
178+
)}
179+
179180
<div>
180181
<div class="font-bold text-lg">
181182
Personal:

0 commit comments

Comments
 (0)