Skip to content

Commit 3b79791

Browse files
authored
[calendar] Show repeatingCountTitle only if yearDiff > 0 (#3949)
1 parent ab5f79a commit 3b79791

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ planned for 2026-01-01
2929
- [tests] migrate from `jest` to `vitest` (#3940, #3941)
3030
- [ci] Add concurrency to automated tests workflow to cancel outdated runs (#3943)
3131
- [tests] replace `node-libgpiod` with `serialport` in electron-rebuild workflow (#3945)
32+
- [calendar] hide repeatingCountTitle if the event count is zero (#3949)
3233

3334
### Fixed
3435

modules/default/calendar/calendar.js

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

333-
repeatingCountTitle = `, ${yearDiff} ${repeatingCountTitle}`;
333+
if (yearDiff > 0) {
334+
repeatingCountTitle = `, ${yearDiff} ${repeatingCountTitle}`;
335+
}
334336
}
335337
}
336338

0 commit comments

Comments
 (0)