Client - fix workout detail display when speeds values are null
This commit is contained in:
parent
e3bb7e5ff0
commit
c385d8066a
@ -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
|
||||
>:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user