From ed3019d1b98cdc93e9722d372f48b32f626a1c99 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 4 Jan 2026 19:43:10 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20corriger=20l'utilisation=20des=20valeurs?= =?UTF-8?q?=20retourn=C3=A9es=20pour=20yearsCollected=20et=20formattedDate?= =?UTF-8?q?=20dans=20le=20composant=20Stats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/home/live/Stats.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/home/live/Stats.vue b/app/components/home/live/Stats.vue index 322b2e1..b51f369 100644 --- a/app/components/home/live/Stats.vue +++ b/app/components/home/live/Stats.vue @@ -5,8 +5,8 @@ import { usePrecision } from '@vueuse/math' const { data: stats } = await useAsyncData('stats', () => $fetch('/api/stats')) const startDate = computed(() => new Date(stats.value?.coding.range.start || '')) -const yearsCollected = useTimeAgo(startDate).value -const formattedDate = useDateFormat(startDate, 'MMM DD, YYYY').value +const yearsCollected = useTimeAgo(startDate) +const formattedDate = useDateFormat(startDate, 'MMM DD, YYYY') const totalHours = usePrecision((stats.value?.coding.grand_total.total_seconds_including_other_language ?? 0) / 3600, 0)