Skip to content

Commit c2ef1c7

Browse files
committed
refactor: add more relevant data to markers
1 parent 62ff67b commit c2ef1c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Workout {
4444
'November',
4545
'December',
4646
];
47-
this.workoutDate = `${this.type[0].toUpperCase()}${this.type.slice(1)} on ${months[this.date.getMonth()]} ${this.date.getDate()}, ${this.date.getFullYear()}`;
47+
this.workoutDate = `${this.distance}km, ${this.duration}m - ${months[this.date.getMonth()]} ${this.date.getDate()}, ${this.date.getFullYear()}`;
4848
}
4949
addClick() {
5050
this.clicks++;

0 commit comments

Comments
 (0)