Skip to content

Commit 51c7556

Browse files
committed
fix: update progress dots to remove all existing overflow indicators
1 parent 934416a commit 51c7556

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/core/pomodoro-timer.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1865,11 +1865,9 @@ export class PomodoroTimer {
18651865
async updateProgressDots() {
18661866
const dots = this.progressDots.querySelectorAll('.dot');
18671867

1868-
// Remove any existing overflow indicator
1869-
const existingOverflow = this.progressDots.querySelector('.overflow-indicator');
1870-
if (existingOverflow) {
1871-
existingOverflow.remove();
1872-
}
1868+
// Remove any existing overflow indicators
1869+
const existingOverflows = this.progressDots.querySelectorAll('.overflow-indicator');
1870+
existingOverflows.forEach(overflow => overflow.remove());
18731871

18741872
// Get actual completed sessions count from SessionManager
18751873
const actualCompletedSessions = await this.getCompletedSessionsToday();

0 commit comments

Comments
 (0)