Skip to content

Commit

Permalink
UnreadCounterService: correct updateAll
Browse files Browse the repository at this point in the history
  • Loading branch information
biosfood committed Oct 24, 2023
1 parent 1c1d1c1 commit f9add10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/shared/services/UnreadCounterService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class UnreadCounterService {

constructor() {
if (isBrowser()) {
poll(this.updateAll, updateUnreadCountsInterval);
poll(async () => this.updateAll(), updateUnreadCountsInterval);
}
}

Expand Down Expand Up @@ -89,11 +89,11 @@ export class UnreadCounterService {
}
}

public updateAll = async () => {
public async updateAll() {
this.updateInboxCounts();
this.updateReports();
this.updateApplications();
};
}

static get Instance() {
return this.#instance ?? (this.#instance = new this());
Expand Down

0 comments on commit f9add10

Please sign in to comment.