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 | 90 +++++++++++++++++--------------- 2 files changed, 49 insertions(+), 43 deletions(-) diff --git a/src/shared/components/navbar.tsx b/src/shared/components/navbar.tsx index b029ce0..f5a4c14 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 (