summaryrefslogtreecommitdiffstats
path: root/ui/src/components/navbar.tsx
diff options
context:
space:
mode:
authorDessalines <tyhou13@gmx.com>2020-01-25 09:58:53 -0500
committerDessalines <tyhou13@gmx.com>2020-01-25 09:58:53 -0500
commitaa5a911edc9d78cb0c462bbd525287e0f3a122ec (patch)
tree850ef9040582f0e140d103a5b4bfe87e8b116e71 /ui/src/components/navbar.tsx
parent691d05222bc1009ec7373336ee097b2bcda5ada5 (diff)
Fixing front end error messages. Fixes #462
Diffstat (limited to 'ui/src/components/navbar.tsx')
-rw-r--r--ui/src/components/navbar.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/src/components/navbar.tsx b/ui/src/components/navbar.tsx
index 849822af..18ba98c9 100644
--- a/ui/src/components/navbar.tsx
+++ b/ui/src/components/navbar.tsx
@@ -202,8 +202,8 @@ export class Navbar extends Component<any, NavbarState> {
parseMessage(msg: WebSocketJsonResponse) {
let res = wsJsonToRes(msg);
- if (res.error) {
- if (res.error == 'not_logged_in') {
+ if (msg.error) {
+ if (msg.error == 'not_logged_in') {
UserService.Instance.logout();
location.reload();
}