From 030e3cdc1266488981b7712c47212a64ae6d39fb Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Wed, 22 May 2024 19:25:28 +0200 Subject: [PATCH] Fixed negative number issue --- stores/CalendarStore.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stores/CalendarStore.ts b/stores/CalendarStore.ts index 3b3d5cb..d5fa7cf 100644 --- a/stores/CalendarStore.ts +++ b/stores/CalendarStore.ts @@ -526,10 +526,10 @@ export const useCalendar = defineStore('calendar', () => { // In the meantime : It's not really that much of a problem on larger scale to not compute days, honestly. if (isSameMonth && isSameYear) { if (remainingDays) { - if (differenceInDays === 1) { - output += ` ${differenceInDays} jour` + if (remainingDays === 1) { + output += ` ${remainingDays} jour` } else { - output += ` ${differenceInDays} jours` + output += ` ${remainingDays} jours` } }