From 305c91199a0f4bf85e7dd4a834218b4763d3e459 Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Sun, 4 Jan 2026 19:46:58 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20corriger=20la=20r=C3=A9cup=C3=A9ration?= =?UTF-8?q?=20de=20la=20date=20de=20d=C3=A9but=20dans=20le=20composant=20S?= =?UTF-8?q?tats?= 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, 3 insertions(+), 1 deletion(-) diff --git a/app/components/home/live/Stats.vue b/app/components/home/live/Stats.vue index b51f369..41f6c98 100644 --- a/app/components/home/live/Stats.vue +++ b/app/components/home/live/Stats.vue @@ -4,7 +4,7 @@ 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 startDate = computed(() => new Date(stats.value?.coding?.range?.start ?? new Date())) const yearsCollected = useTimeAgo(startDate) const formattedDate = useDateFormat(startDate, 'MMM DD, YYYY') @@ -21,6 +21,8 @@ const topOS = computed(() => stats.value?.os.slice(0, 2) ?? []) v-if="stats" class="space-y-6" > + {{ stats.coding.range.start }} + {{ startDate }}