Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
varesa committed Apr 21, 2024
1 parent 5524d93 commit 632e6a3
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/views/Programs.tsx
Expand Up @@ -91,16 +91,7 @@ const ProgramTimetableDate: FunctionComponent<RouteComponentProps & ProgramsDate
};

const ProgramMapView: FunctionComponent<RouteComponentProps & ProgramsWeekProps> = ({ match, programs }) => {
let date = moment();

let week;
//This could be made much better.
if (date.date() >= 29) week = "4";
else if (date.date() >= 22) week = "3";
else if (date.date() >= 15) week = "2";
else week = "1";
week = match.params.week!

const week = match.params.week!
return (
<ProgramMap {...{ programs, week }} />
);
Expand Down

0 comments on commit 632e6a3

Please sign in to comment.