Skip to content

Commit

Permalink
opened essports
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnpradeep committed Feb 10, 2024
1 parent 1747bf2 commit 211f5a5
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions projects/mybyte/pages/dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const events = [
if (Hacks9.deadline < new Date()) {
return <EventRect disabled={true} event={Hacks9} />;
} else if (!re.HACKS9) {
return <EventRect disabled={true} event={Hacks9} />; // Manually disable hacks9 now that deadline has passed
return <EventRect disabled={true} event={Hacks9} />; // Manually disable hacks9 now that deadline has passed
} else {
return <EventRect disabled={true} event={Hacks9} />;
}
Expand All @@ -44,9 +44,7 @@ const events = [
},
{
event: (re: any) => {
if (ESports.deadline < new Date()) {
return <EventRect disabled={true} event={ESports} />;
} else if (!re.HACKS9 || !re || re.ESPORTS9) {
if (!re.HACKS9 || !re || re.ESPORTS9) {
return <EventRect disabled={true} event={ESports} />;
} else {
return <EventRect disabled={false} event={ESports} />;
Expand Down Expand Up @@ -109,7 +107,8 @@ const DashboardPage = () => {
message: "You are already registered for this event",
color: "bg-[#50C878]",
});
} else if (ev.deadline < new Date() || ev.key === Events.hacks9) { // Manually disable hacks9 now that deadline has passed
} else if (ev.deadline < new Date() || ev.key === Events.hacks9) {
// Manually disable hacks9 now that deadline has passed
setAlert({
show: true,
message: "Registration for this event has closed.",
Expand Down

0 comments on commit 211f5a5

Please sign in to comment.