File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
src/components/Translatathon Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ export const dates = [
52
52
description :
53
53
"We will announce the results and winners on the ethereum.org community Call" ,
54
54
startDate : new Date ( "2024-08-29T12:00:00Z" ) ,
55
- endDate : new Date ( "2024-09-30T12:00:00Z" ) ,
55
+ endDate : null ,
56
56
link : null ,
57
57
linkText : null ,
58
58
} ,
@@ -65,7 +65,8 @@ export const DatesAndTimeline = () => {
65
65
< Flex direction = "column" p = { 4 } mb = { 16 } >
66
66
{ dates . map ( ( date , index ) => {
67
67
const isLive =
68
- todaysDate >= date . startDate && todaysDate <= date . endDate
68
+ todaysDate >= date . startDate &&
69
+ ( date . endDate ? todaysDate <= date . endDate : true )
69
70
return (
70
71
< Flex
71
72
key = { index }
@@ -96,8 +97,8 @@ export const DatesAndTimeline = () => {
96
97
color = { isLive ? "background.base" : "body.base" }
97
98
>
98
99
< Text >
99
- { date . startDate . toDateString ( ) } - { " " }
100
- { date . endDate . toDateString ( ) }
100
+ { date . startDate . toDateString ( ) } { " " }
101
+ { date . endDate ? `- ${ date . endDate . toDateString ( ) } ` : "" }
101
102
</ Text >
102
103
</ Flex >
103
104
< Flex direction = "column" >
You can’t perform that action at this time.
0 commit comments