Fixed negative number issue

This commit is contained in:
Alexis
2024-05-22 19:25:28 +02:00
parent f361fdeb49
commit 030e3cdc12

View File

@@ -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. // In the meantime : It's not really that much of a problem on larger scale to not compute days, honestly.
if (isSameMonth && isSameYear) { if (isSameMonth && isSameYear) {
if (remainingDays) { if (remainingDays) {
if (differenceInDays === 1) { if (remainingDays === 1) {
output += ` ${differenceInDays} jour` output += ` ${remainingDays} jour`
} else { } else {
output += ` ${differenceInDays} jours` output += ` ${remainingDays} jours`
} }
} }