Skip to content

Commit

Permalink
use nbsp
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixTJDietrich committed Oct 3, 2024
1 parent 83940ad commit 305b670
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/src/app/home/leaderboard/filter/filter.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ dayjs.extend(weekOfYear);
function formatLabel(startDate: dayjs.Dayjs, endDate: dayjs.Dayjs | undefined) {
const calendarWeek = startDate.week();
if (!endDate) {
return `CW ${calendarWeek}: ${startDate.format('MMM D')} - Today`;
return `CW\xa0${calendarWeek}:\xa0${startDate.format('MMM D')}\xa0-\xa0Today`;
}

const sameMonth = startDate.month() === endDate.month();
if (sameMonth) {
return `CW ${calendarWeek}: ${startDate.format('MMM D')} - ${endDate.format('D')}`;
return `CW\xa0${calendarWeek}:\xa0${startDate.format('MMM D')}\xa0-\xa0${endDate.format('D')}`;
} else {
return `CW ${calendarWeek}: ${startDate.format('MMM D')} - ${endDate.format('MMM D')}`;
return `CW\xa0${calendarWeek}:\xa0${startDate.format('MMM D')}\xa0-\xa0${endDate.format('MMM D')}`;
}
}

Expand Down

0 comments on commit 305b670

Please sign in to comment.