File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ const App = () => {
6161
6262 useEffect ( ( ) => {
6363 dispatch ( userActions . fetchUserDetails ( ) ) ;
64- dispatch ( userActions . getIsTermsAcceptedInfo ( ) ) ;
64+ isLoggedIn && dispatch ( userActions . getIsTermsAcceptedInfo ( ) ) ;
6565 } , [ dispatch ] ) ;
6666
6767 const Loader = ( ) => {
@@ -170,17 +170,7 @@ const App = () => {
170170 />
171171 }
172172 />
173- < Route
174- path = "/"
175- element = {
176- < PrivateRoute
177- isAllowed = { isLoggedInAndTermsAccepted }
178- component = { withInAppWrapper ( AiMarketplace ) }
179- redirectTo = { `/${ Routes . ONBOARDING } ` }
180- path = "/"
181- />
182- }
183- />
173+ < Route path = "/" Component = { withInAppWrapper ( AiMarketplace ) } />
184174 < Route path = { `/${ Routes . AI_REQUEST_FORM } ` } Component = { AiRequestForm } />
185175 < Route path = { `/${ Routes . GET_STARTED } ` } Component = { withInAppWrapper ( GetStarted ) } />
186176 < Route path = "*" Component = { PageNotFound } />
You can’t perform that action at this time.
0 commit comments