Client - fix elevation values since API update
This commit is contained in:
parent
bf93c7f469
commit
1771299068
@ -2,8 +2,8 @@
|
|||||||
"workouts": "séances",
|
"workouts": "séances",
|
||||||
"distance": "distance",
|
"distance": "distance",
|
||||||
"duration": "durée",
|
"duration": "durée",
|
||||||
"ascent": "dénivelé+",
|
"ascent": "dénivelé +",
|
||||||
"descent": "dénivelé-",
|
"descent": "dénivelé -",
|
||||||
"month": "mois",
|
"month": "mois",
|
||||||
"Statistics": "Statistiques",
|
"Statistics": "Statistiques",
|
||||||
"year": "année",
|
"year": "année",
|
||||||
|
@ -102,8 +102,8 @@ export const formatStats = (stats, sports, params, displayedSports, weekm) => {
|
|||||||
dataNbWorkouts[sportLabel] = stats[date][sportId].nb_workouts
|
dataNbWorkouts[sportLabel] = stats[date][sportId].nb_workouts
|
||||||
dataDistance[sportLabel] = stats[date][sportId].total_distance
|
dataDistance[sportLabel] = stats[date][sportId].total_distance
|
||||||
dataDuration[sportLabel] = stats[date][sportId].total_duration
|
dataDuration[sportLabel] = stats[date][sportId].total_duration
|
||||||
dataAscent[sportLabel] = stats[date][sportId].total_ascent
|
dataAscent[sportLabel] = stats[date][sportId].total_ascent / 1000
|
||||||
dataDescent[sportLabel] = stats[date][sportId].total_descent
|
dataDescent[sportLabel] = stats[date][sportId].total_descent / 1000
|
||||||
return null
|
return null
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user