From 4dcceb1701f049f89707b4b790076b17a509e78e Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 23 Dec 2024 16:22:51 +0100 Subject: [PATCH] Client - display uphill values in workout card when map is not displayed and values are not null --- fittrackee_client/src/components/Workout/WorkoutCard.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fittrackee_client/src/components/Workout/WorkoutCard.vue b/fittrackee_client/src/components/Workout/WorkoutCard.vue index 065281665..b736b434c 100644 --- a/fittrackee_client/src/components/Workout/WorkoutCard.vue +++ b/fittrackee_client/src/components/Workout/WorkoutCard.vue @@ -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) {