From 1771299068a0d4ecd4afc35139997da01cf6f718 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 1 Sep 2021 13:07:00 +0200 Subject: [PATCH] Client - fix elevation values since API update --- fittrackee_client/src/locales/fr/statistics.json | 4 ++-- fittrackee_client/src/utils/stats.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fittrackee_client/src/locales/fr/statistics.json b/fittrackee_client/src/locales/fr/statistics.json index 7a90dfc0..b19c5e1a 100644 --- a/fittrackee_client/src/locales/fr/statistics.json +++ b/fittrackee_client/src/locales/fr/statistics.json @@ -2,8 +2,8 @@ "workouts": "séances", "distance": "distance", "duration": "durée", - "ascent": "dénivelé+", - "descent": "dénivelé-", + "ascent": "dénivelé +", + "descent": "dénivelé -", "month": "mois", "Statistics": "Statistiques", "year": "année", diff --git a/fittrackee_client/src/utils/stats.js b/fittrackee_client/src/utils/stats.js index 441fd5ea..4b7024e3 100644 --- a/fittrackee_client/src/utils/stats.js +++ b/fittrackee_client/src/utils/stats.js @@ -102,8 +102,8 @@ export const formatStats = (stats, sports, params, displayedSports, weekm) => { dataNbWorkouts[sportLabel] = stats[date][sportId].nb_workouts dataDistance[sportLabel] = stats[date][sportId].total_distance dataDuration[sportLabel] = stats[date][sportId].total_duration - dataAscent[sportLabel] = stats[date][sportId].total_ascent - dataDescent[sportLabel] = stats[date][sportId].total_descent + dataAscent[sportLabel] = stats[date][sportId].total_ascent / 1000 + dataDescent[sportLabel] = stats[date][sportId].total_descent / 1000 return null }) }