Skip to content

Commit eeca68b

Browse files
[DSC-2488] clear up notifications when state reach 0
1 parent cd2369d commit eeca68b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/app/shared/notifications/notifications-board/notifications-board.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export class NotificationsBoardComponent implements OnInit, OnDestroy {
6868
.subscribe((state: NotificationsState) => {
6969
if (state.length === 0) {
7070
this.notifications = [];
71+
this.processNotifications = [];
7172
} else if (state.length > this.notifications.length) {
7273
// Add
7374
const newElem = difference(state, [...this.notifications,...this.processNotifications]);

0 commit comments

Comments
 (0)