Skip to content

Commit

Permalink
Fix unwanted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbura committed Sep 6, 2022
1 parent 790bf5e commit 19f674c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/state/Notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class Notifications extends EventEmitter {

_setNoti(roomId, total, highlight) {
const addNoti = (id, t, h, fromId) => {
const prevTotal = this.roomIdToNoti.has(id) ? this.getT : null;
const prevTotal = this.roomIdToNoti.get(id)?.total ?? null;
const noti = this.getNoti(id);

noti.total += t;
Expand Down

0 comments on commit 19f674c

Please sign in to comment.