From 3278576927d2cc6bed14870a3ca1b6cafdb26806 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 5 Dec 2020 20:26:01 -0600 Subject: [PATCH] Trying to fix site loading errors. #104 --- src/shared/components/navbar.tsx | 2 +- src/shared/utils.ts | 88 +++++++++++++++++--------------- 2 files changed, 48 insertions(+), 42 deletions(-) diff --git a/src/shared/components/navbar.tsx b/src/shared/components/navbar.tsx index b029ce03..f5a4c144 100644 --- a/src/shared/components/navbar.tsx +++ b/src/shared/components/navbar.tsx @@ -165,7 +165,7 @@ export class Navbar extends Component { // TODO class active corresponding to current page navbar() { - let user = UserService.Instance.user; + let user = this.props.site.my_user; return (