Skip to content

Commit

Permalink
correct variable names - these are not dates, but week-of-the-year nu…
Browse files Browse the repository at this point in the history
…mbers.
  • Loading branch information
stopfstedt committed Dec 30, 2024
1 parent afe361c commit ba351ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ilios-common/addon/components/dashboard/week.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { DateTime } from 'luxon';

export default class DashboardWeekComponent extends Component {
get expanded() {
const lastSunday = this.thisThursday.minus({ week: 1 }).toFormat('W');
const thisSunday = this.thisThursday.toFormat('W');
const nextSunday = this.thisThursday.plus({ week: 1 }).toFormat('W');
const lastWeek = this.thisThursday.minus({ week: 1 }).toFormat('W');
const thisWeek = this.thisThursday.toFormat('W');
const nextWeek = this.thisThursday.plus({ week: 1 }).toFormat('W');

return `${lastSunday}-${thisSunday}-${nextSunday}`;
return `${lastWeek}-${thisWeek}-${nextWeek}`;
}

get thisThursday() {
Expand Down

0 comments on commit ba351ce

Please sign in to comment.