Fixed negative number issue
This commit is contained in:
@@ -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`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user