From 4dd5633232736d6ab7a532df6b4207716d88ceba Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 1 Sep 2021 13:14:11 +0200 Subject: [PATCH] Client - do not diplay elevation for manually added workouts --- fittrackee_client/src/components/Workouts/WorkoutsList.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fittrackee_client/src/components/Workouts/WorkoutsList.jsx b/fittrackee_client/src/components/Workouts/WorkoutsList.jsx index 745a1a47..ce5d38be 100644 --- a/fittrackee_client/src/components/Workouts/WorkoutsList.jsx +++ b/fittrackee_client/src/components/Workouts/WorkoutsList.jsx @@ -91,13 +91,13 @@ export default class WorkoutsList extends React.PureComponent { {t('workouts:Ascent')} - {workout.ascent} m + {workout.ascent === null ? '' : `${workout.ascent} m`} {t('workouts:Descent')} - {workout.descent} m + {workout.descent === null ? '' : `${workout.descent} m`} ))}