Skip to content

Commit

Permalink
[#19] Add test for PrivateRoutes but infinie redirect loop if no user
Browse files Browse the repository at this point in the history
  • Loading branch information
liamstevens111 committed Mar 22, 2023
1 parent 46e5768 commit 3ea12fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PrivateRoute/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function PrivateRoute() {
}, []);

if (loading) {
return <h3>Loading...</h3>;
return <h3 data-test-id="loading">Loading...</h3>;
}

return user ? (
Expand Down

0 comments on commit 3ea12fc

Please sign in to comment.