diff options
author | crupest <crupest@outlook.com> | 2022-05-01 22:50:59 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-05-01 22:50:59 +0800 |
commit | 49cfe34ccf3bd87e02668a3f6f97652662cdeb36 (patch) | |
tree | 9ef7dc0ec7358df1b6eec72195d22af30499bf0c /FrontEnd/src/services | |
parent | db85383e682fbaae4bd3fc5c7f708925b206366f (diff) | |
download | timeline-49cfe34ccf3bd87e02668a3f6f97652662cdeb36.tar.gz timeline-49cfe34ccf3bd87e02668a3f6f97652662cdeb36.tar.bz2 timeline-49cfe34ccf3bd87e02668a3f6f97652662cdeb36.zip |
...
Diffstat (limited to 'FrontEnd/src/services')
-rw-r--r-- | FrontEnd/src/services/user.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FrontEnd/src/services/user.ts b/FrontEnd/src/services/user.ts index 2d6b6e33..b7e6c44d 100644 --- a/FrontEnd/src/services/user.ts +++ b/FrontEnd/src/services/user.ts @@ -98,7 +98,7 @@ export class UserService { this.userSubject.next(user); }, (error) => { - if (!(error instanceof HttpNetworkError)) { + if (error instanceof HttpBadRequestError) { localStorage.removeItem(USER_STORAGE_KEY); this.userSubject.next(null); pushAlert({ |