From 3c0ef2b6bec5660ef6e29304035bacd918e022e4 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Tue, 31 Jan 2023 22:33:59 -0800 Subject: [PATCH] Fix on these pages They were waiting for context and a user object that wasn't coming --- pages/new/index.tsx | 2 +- pages/saved.tsx | 2 +- pages/teams.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/new/index.tsx b/pages/new/index.tsx index 2187cf68..69c8ae7d 100644 --- a/pages/new/index.tsx +++ b/pages/new/index.tsx @@ -86,7 +86,7 @@ const NewRoute: React.FC = ({ // Methods: Page component rendering function pageHead() { - if (context && context.user) return + return } function pageError() { diff --git a/pages/saved.tsx b/pages/saved.tsx index d620a522..01670556 100644 --- a/pages/saved.tsx +++ b/pages/saved.tsx @@ -279,7 +279,7 @@ const SavedRoute: React.FC = ({ // Methods: Page component rendering function pageHead() { - if (context && context.user) return + return } function pageError() { diff --git a/pages/teams.tsx b/pages/teams.tsx index 3df2ad26..92fa3176 100644 --- a/pages/teams.tsx +++ b/pages/teams.tsx @@ -279,7 +279,7 @@ const TeamsRoute: React.FC = ({ // Methods: Page component rendering function pageHead() { - if (context && context.user) return + return } function pageError() {