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" />
|
<WorkoutRecord :workoutObject="workoutObject" recordType="FD" />
|
||||||
</div>
|
</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" />
|
<i class="fa fa-tachometer" aria-hidden="true" />
|
||||||
<span class="label">{{ $t('workouts.AVERAGE_SPEED') }}</span
|
<span class="label">{{ $t('workouts.AVERAGE_SPEED') }}</span
|
||||||
>:
|
>:
|
||||||
|
@ -85,12 +85,12 @@ export interface IWorkout {
|
|||||||
|
|
||||||
export interface IWorkoutObject {
|
export interface IWorkoutObject {
|
||||||
ascent: number | null
|
ascent: number | null
|
||||||
aveSpeed: number
|
aveSpeed: number | null
|
||||||
descent: number | null
|
descent: number | null
|
||||||
distance: number
|
distance: number
|
||||||
duration: string
|
duration: string
|
||||||
maxAlt: number | null
|
maxAlt: number | null
|
||||||
maxSpeed: number
|
maxSpeed: number | null
|
||||||
minAlt: number | null
|
minAlt: number | null
|
||||||
moving: string
|
moving: string
|
||||||
nextUrl: string | null
|
nextUrl: string | null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user