diff options
author | Richie Zhang <12566991+StaticallyTypedRice@users.noreply.github.com> | 2020-01-31 19:47:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-31 19:47:46 -0800 |
commit | 5d63ef0c596a37ef15d54a7dfa6938f550e39d80 (patch) | |
tree | baa36bfcda4257f2e253a1c02445f7aacb1aec97 /ui/src/components/navbar.tsx | |
parent | d93f0e2d34a744ff78cb683eb6eb13cc160097a3 (diff) | |
parent | 8cbdba1da39c15d2a3d13919398fc4d4c8ef2c6c (diff) |
Merge pull request #8 from dessalines/master
Merge upstream
Diffstat (limited to 'ui/src/components/navbar.tsx')
-rw-r--r-- | ui/src/components/navbar.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/src/components/navbar.tsx b/ui/src/components/navbar.tsx index 849822af..1828fce9 100644 --- a/ui/src/components/navbar.tsx +++ b/ui/src/components/navbar.tsx @@ -138,7 +138,7 @@ export class Navbar extends Component<any, NavbarState> { </li> <li className="nav-item"> <Link - class="nav-link ml-2" + class="nav-link" to="/sponsors" title={i18n.t('donate_to_lemmy')} > @@ -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(); } |