Skip to content

Commit 86772b2

Browse files
committed
remove endDate for results announcement, and logic changes to render that properly
1 parent 8d4f86b commit 86772b2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/components/Translatathon/DatesAndTimeline.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const dates = [
5252
description:
5353
"We will announce the results and winners on the ethereum.org community Call",
5454
startDate: new Date("2024-08-29T12:00:00Z"),
55-
endDate: new Date("2024-09-30T12:00:00Z"),
55+
endDate: null,
5656
link: null,
5757
linkText: null,
5858
},
@@ -65,7 +65,8 @@ export const DatesAndTimeline = () => {
6565
<Flex direction="column" p={4} mb={16}>
6666
{dates.map((date, index) => {
6767
const isLive =
68-
todaysDate >= date.startDate && todaysDate <= date.endDate
68+
todaysDate >= date.startDate &&
69+
(date.endDate ? todaysDate <= date.endDate : true)
6970
return (
7071
<Flex
7172
key={index}
@@ -96,8 +97,8 @@ export const DatesAndTimeline = () => {
9697
color={isLive ? "background.base" : "body.base"}
9798
>
9899
<Text>
99-
{date.startDate.toDateString()} -{" "}
100-
{date.endDate.toDateString()}
100+
{date.startDate.toDateString()}{" "}
101+
{date.endDate ? `- ${date.endDate.toDateString()}` : ""}
101102
</Text>
102103
</Flex>
103104
<Flex direction="column">

0 commit comments

Comments
 (0)