From 3ea12fc1410aa2e9c6e78013b76faf65c610ca7d Mon Sep 17 00:00:00 2001 From: Liam Stevens <8955671+liamstevens111@users.noreply.github.com> Date: Tue, 21 Mar 2023 11:31:40 +0700 Subject: [PATCH] [#19] Add test for PrivateRoutes but infinie redirect loop if no user --- src/components/PrivateRoute/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/PrivateRoute/index.tsx b/src/components/PrivateRoute/index.tsx index f2d783e..00e1280 100644 --- a/src/components/PrivateRoute/index.tsx +++ b/src/components/PrivateRoute/index.tsx @@ -24,7 +24,7 @@ function PrivateRoute() { }, []); if (loading) { - return

Loading...

; + return

Loading...

; } return user ? (