diff --git a/src/views/Profile.vue b/src/views/Profile.vue
index 2cf4dfe..14b53f8 100644
--- a/src/views/Profile.vue
+++ b/src/views/Profile.vue
@@ -156,7 +156,7 @@
- {{ $t('total_distance') }}: {{ getReadableDistanceForUI() }}
+ {{ $t('total_distance') }}: {{ getTotalReadableDistance() }}
@@ -420,8 +420,8 @@ const props = defineProps({
});
const accesstoken = props.token;
-function getReadableDistanceForUI() {
- return state.scans.reduce((accumulator, currentValue) => accumulator + currentValue.distance, 0)
+function getTotalReadableDistance() {
+ return getReadableDistance(state.scans.reduce((accumulator, currentValue) => accumulator + currentValue.distance, 0));
}
function getReadableDistance(distance) {