We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7c1df9 commit b931f8eCopy full SHA for b931f8e
redisinsight/ui/src/utils/routerWithSubRoutes.tsx
@@ -28,7 +28,11 @@ const PrivateRoute = (route: IRoute) => {
28
)
29
}
30
31
- return haveToAcceptAgreements || feature?.flag === false
+ if (haveToAcceptAgreements) {
32
+ return <Redirect to="/" />
33
+ }
34
+
35
+ return feature?.flag === false
36
? <Redirect to={Pages.notFound} />
37
: (
38
// pass the sub-routes down to keep nesting
0 commit comments