Client - fix elevation values since API update

This commit is contained in:
Sam 2021-09-01 13:07:00 +02:00
parent bf93c7f469
commit 1771299068
2 changed files with 4 additions and 4 deletions

View File

@ -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",

View File

@ -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
}) })
} }