From db87bd2336b0e3086b86aedf6ba64744ade4d803 Mon Sep 17 00:00:00 2001 From: Leo Zhang Date: Thu, 17 Oct 2024 22:24:23 -0400 Subject: [PATCH] fix authenticated user negation --- frontend/src/components/auth/PrivateRoute.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/auth/PrivateRoute.tsx b/frontend/src/components/auth/PrivateRoute.tsx index e88dd31..73a44e4 100644 --- a/frontend/src/components/auth/PrivateRoute.tsx +++ b/frontend/src/components/auth/PrivateRoute.tsx @@ -17,7 +17,7 @@ const PrivateRoute: React.FC = ({ }: PrivateRouteProps) => { const { authenticatedUser } = useContext(AuthContext); - return !authenticatedUser ? ( // ! added temporarily for development purposes + return authenticatedUser ? ( // ! added temporarily for development purposes ) : (