Client - fix workout detail display when speeds values are null

This commit is contained in:
Sam 2023-07-26 17:48:08 +02:00
parent e3bb7e5ff0
commit c385d8066a
2 changed files with 6 additions and 3 deletions

View File

@ -24,7 +24,10 @@
/>
<WorkoutRecord :workoutObject="workoutObject" recordType="FD" />
</div>
<div class="workout-data">
<div
class="workout-data"
v-if="workoutObject.aveSpeed !== null && workoutObject.maxSpeed !== null"
>
<i class="fa fa-tachometer" aria-hidden="true" />
<span class="label">{{ $t('workouts.AVERAGE_SPEED') }}</span
>:

View File

@ -85,12 +85,12 @@ export interface IWorkout {
export interface IWorkoutObject {
ascent: number | null
aveSpeed: number
aveSpeed: number | null
descent: number | null
distance: number
duration: string
maxAlt: number | null
maxSpeed: number
maxSpeed: number | null
minAlt: number | null
moving: string
nextUrl: string | null