diff options
author | Richie Zhang <12566991+StaticallyTypedRice@users.noreply.github.com> | 2020-01-30 15:59:03 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-30 15:59:03 -0800 |
commit | 43c55027f918b518382cf2ec63ff2ca99bb05ac9 (patch) | |
tree | 7a4bea8b5cc10a1955e7fd6874b54f8fea9910dc /ui/src/components/navbar.tsx | |
parent | ed842dfb720b4dc23000459eb4a3f203728ab565 (diff) | |
parent | 4778f198e16ae64dc054687264d2d5222158a576 (diff) |
Merge pull request #6 from dessalines/dev
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(); } |