Skip to content

Commit 12ba347

Browse files
authored
Merge pull request #162 from kinde-oss/feat/protected-route-component
chore: remove duplicate check
2 parents 7e87d50 + ecf8e59 commit 12ba347

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/components/react-router-dom/ProtectedRoute.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,6 @@ export default function ProtectedRoute({
103103
return <div>Loading...</div>;
104104
}
105105

106-
// Show loading while checking router availability
107-
if (isRouterAvailable === null) {
108-
return <div>Loading...</div>;
109-
}
110-
111106
// If react-router-dom is not available, show fallback
112107
if (isRouterAvailable === false) {
113108
return <ProtectedRouteFallback>{children}</ProtectedRouteFallback>;

0 commit comments

Comments
 (0)