From 829b617b174e61e39a0d21ad04f30493c0b124ba Mon Sep 17 00:00:00 2001 From: Dessalines <tyhou13@gmx.com> Date: Sat, 23 Jan 2021 23:41:04 -0500 Subject: [PATCH] Fixing switch user navbar info remnant. Fixes #128 --- src/shared/components/navbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/components/navbar.tsx b/src/shared/components/navbar.tsx index ea191b8..b4d2cbe 100644 --- a/src/shared/components/navbar.tsx +++ b/src/shared/components/navbar.tsx @@ -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"> -- 2.44.1