Skip to content

Commit 1592faa

Browse files
committed
fix-jun-5
1 parent b334d01 commit 1592faa

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/app/core/inbox/inbox.service.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { HttpClient, HttpHeaders } from '@angular/common/http'
22
import { Injectable } from '@angular/core'
3-
import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs'
3+
import { BehaviorSubject, EMPTY, Observable, ReplaySubject } from 'rxjs'
44
import { catchError, map, switchMap, tap, retry } from 'rxjs/operators'
55
import { AMOUNT_OF_RETRIEVE_NOTIFICATIONS_PER_CALL } from 'src/app/constants'
66
import { ERROR_REPORT } from 'src/app/errors'
@@ -228,13 +228,13 @@ export class InboxService {
228228
headers: this.headers,
229229
})
230230
.pipe(
231-
retry(3),
232231
tap((count: number) => {
233232
this._unreadCountSubject.next(count)
234233
}),
235-
catchError((error) =>
236-
this._errorHandler.handleError(error, ERROR_REPORT.STANDARD_VERBOSE)
237-
)
234+
catchError((error) => {
235+
// If the user is not logged in and error is expected, we return null
236+
return EMPTY
237+
})
238238
)
239239
}
240240

0 commit comments

Comments
 (0)