[calendar] Show repeatingCountTitle only if yearDiff > 0 (#3949)

This commit is contained in:
Jarno
2025-11-08 15:13:59 +02:00
committed by GitHub
parent ab5f79a1be
commit 3b79791a6b
2 changed files with 4 additions and 1 deletions

View File

@@ -330,7 +330,9 @@ Module.register("calendar", {
const thisYear = eventStartDateMoment.year(),
yearDiff = thisYear - event.firstYear;
repeatingCountTitle = `, ${yearDiff} ${repeatingCountTitle}`;
if (yearDiff > 0) {
repeatingCountTitle = `, ${yearDiff} ${repeatingCountTitle}`;
}
}
}