Skip to content

Commit

Permalink
Client - fix workout detail display when speeds values are null
Browse files Browse the repository at this point in the history
  • Loading branch information
SamR1 committed Jul 26, 2023
1 parent e3bb7e5 commit c385d80
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
>:
Expand Down
4 changes: 2 additions & 2 deletions fittrackee_client/src/types/workouts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c385d80

Please sign in to comment.