Skip to content

Commit 72c74d3

Browse files
authored
Show repeatingCountTitle only if yearDiff > 0
Add condition to only append year difference if greater than 0.
1 parent b0c5924 commit 72c74d3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

modules/default/calendar/calendar.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,9 @@ Module.register("calendar", {
332332
const thisYear = eventStartDateMoment.year(),
333333
yearDiff = thisYear - event.firstYear;
334334

335-
repeatingCountTitle = `, ${yearDiff} ${repeatingCountTitle}`;
335+
if (yearDiff > 0) {
336+
repeatingCountTitle = `, ${yearDiff} ${repeatingCountTitle}`;
337+
}
336338
}
337339
}
338340

0 commit comments

Comments
 (0)