Compare commits

...

2 Commits

Author SHA1 Message Date
68c2c681f2
chore(release): 1.4.2
All checks were successful
Build release images / build-container (push) Successful in 48s
2025-05-26 19:01:03 +02:00
480fe3e0e5
fix(profile): Format total distance 2025-05-26 18:58:43 +02:00
3 changed files with 13 additions and 4 deletions

View File

@ -2,8 +2,17 @@
All notable changes to this project will be documented in this file. Dates are displayed in UTC.
#### [1.4.2](https://git.odit.services/lfk/selfservice/compare/1.4.1...1.4.2)
- refactor(Profile): drop sponsor selfservice create from this branch [`2d761cc`](https://git.odit.services/lfk/selfservice/commit/2d761ccd6da7d9515fc0c2b65dc2ca0cff61e3bd)
- feat(Profile/sponsoring): show note for on-day cash donations [`59cb42c`](https://git.odit.services/lfk/selfservice/commit/59cb42c3364777f7b8aed1e90f48f5da015db118)
- fix(profile): Format total distance [`480fe3e`](https://git.odit.services/lfk/selfservice/commit/480fe3e0e568939507e5cc21c48e98634614d4e6)
#### [1.4.1](https://git.odit.services/lfk/selfservice/compare/1.4.0...1.4.1)
> 25 April 2025
- chore(release): 1.4.1 [`128c6ab`](https://git.odit.services/lfk/selfservice/commit/128c6abd737654087100cfca8e72af9b14dd770c)
- fix(laptimes): Filter out invalid scans [`094e731`](https://git.odit.services/lfk/selfservice/commit/094e7319476bc571949a70b6f4c27539616f3634)
- fix(certificate): Provide selfservice url on certificate [`8d6f290`](https://git.odit.services/lfk/selfservice/commit/8d6f290fd5bad54094ba1228fa6d854ad77a561d)

View File

@ -1,6 +1,6 @@
{
"name": "@odit/lfk-selfservice",
"version": "1.4.1",
"version": "1.4.2",
"type": "module",
"scripts": {
"dev": "vite",

View File

@ -156,7 +156,7 @@
<div class="w-full mx-auto">
<div v-if="state.scans.length > 0">
<p class="mb-2">
{{ $t('total_distance') }}: {{ getReadableDistanceForUI() }}
{{ $t('total_distance') }}: {{ getTotalReadableDistance() }}
</p>
<table class="table-auto w-full text-left whitespace-no-wrap">
@ -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) {