Skip to content

Commit

Permalink
Client - display uphill values in workout card when map is not displayed
Browse files Browse the repository at this point in the history
 and values are not null
  • Loading branch information
SamR1 committed Dec 23, 2024
1 parent 33f4fc2 commit 4dcceb1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions fittrackee_client/src/components/Workout/WorkoutCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,7 @@
)
}
function hasUphillValue(workout: IWorkout): boolean {
return (
hasElevation(workout) &&
workout.ascent !== null &&
workout.descent !== null
)
return workout.ascent !== null && workout.descent !== null
}
function navigateToWorkout(workout: IWorkout) {
if (workout.id) {
Expand Down

0 comments on commit 4dcceb1

Please sign in to comment.