aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/services/user.ts
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-05-01 22:50:59 +0800
committercrupest <crupest@outlook.com>2022-05-01 22:50:59 +0800
commit49cfe34ccf3bd87e02668a3f6f97652662cdeb36 (patch)
tree9ef7dc0ec7358df1b6eec72195d22af30499bf0c /FrontEnd/src/services/user.ts
parentdb85383e682fbaae4bd3fc5c7f708925b206366f (diff)
downloadtimeline-49cfe34ccf3bd87e02668a3f6f97652662cdeb36.tar.gz
timeline-49cfe34ccf3bd87e02668a3f6f97652662cdeb36.tar.bz2
timeline-49cfe34ccf3bd87e02668a3f6f97652662cdeb36.zip
...
Diffstat (limited to 'FrontEnd/src/services/user.ts')
-rw-r--r--FrontEnd/src/services/user.ts2
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({