From ba351ce0ec20ae8917fc3256ba354ed011d57855 Mon Sep 17 00:00:00 2001 From: Stefan Topfstedt Date: Mon, 30 Dec 2024 08:15:36 -0800 Subject: [PATCH] correct variable names - these are not dates, but week-of-the-year numbers. --- packages/ilios-common/addon/components/dashboard/week.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/ilios-common/addon/components/dashboard/week.js b/packages/ilios-common/addon/components/dashboard/week.js index 6a4164c73a..cd87f52fb9 100644 --- a/packages/ilios-common/addon/components/dashboard/week.js +++ b/packages/ilios-common/addon/components/dashboard/week.js @@ -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() {