]> Untitled Git - lemmy-ui.git/commitdiff
Fixing switch user navbar info remnant. Fixes #128
authorDessalines <tyhou13@gmx.com>
Sun, 24 Jan 2021 04:41:04 +0000 (23:41 -0500)
committerDessalines <tyhou13@gmx.com>
Sun, 24 Jan 2021 04:41:04 +0000 (23:41 -0500)
src/shared/components/navbar.tsx

index ea191b8f422693a46b60ce21c7b9eb6d62050b14..b4d2cbe516e3087548d5f3b1b170de2f0c809678 100644 (file)
@@ -173,7 +173,7 @@ export class Navbar extends Component<NavbarProps, NavbarState> {
 
   // TODO class active corresponding to current page
   navbar() {
-    let user = this.props.site_res.my_user || UserService.Instance.user;
+    let user = UserService.Instance.user || this.props.site_res.my_user;
     return (
       <nav class="navbar navbar-expand-lg navbar-light shadow-sm p-0 px-3">
         <div class="container">