Skip to content

Commit 952e3c5

Browse files
committed
fix: workout marker shows invalid date
1 parent 245319d commit 952e3c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

public/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ class Workout {
3939
'November',
4040
'December',
4141
];
42-
this.workoutDate = `${this.type[0].toUpperCase()}${this.type.slice(1)} on ${months[this.date.getMonth()]
43-
} ${this.date.getDay()}`;
42+
this.workoutDate = `${this.type[0].toUpperCase()}${this.type.slice(1)} on ${months[this.date.getMonth()]} ${this.date.getDate()}, ${this.date.getFullYear()}`;
4443
}
4544
addClick() {
4645
this.clicks++;
@@ -184,6 +183,7 @@ class App {
184183
}
185184

186185
_showForm(mapE) {
186+
// TODO: fails to focus after first load
187187
inputDistance.focus();
188188
this.#mapEvent = mapE;
189189
form.classList.remove('hidden');

0 commit comments

Comments
 (0)