Fix 404 page is not rendering issue (#7786)

* Fix 404 page is not rendering issue

* Make changes in AppRouter
This commit is contained in:
Sachin Chaurasiya 2022-09-29 12:43:14 +05:30 committed by GitHub
parent a946c3fc5a
commit d563c45b16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -157,7 +157,6 @@ const AppRouter = () => {
{callbackComponent ? ( {callbackComponent ? (
<Route component={callbackComponent} path={ROUTES.CALLBACK} /> <Route component={callbackComponent} path={ROUTES.CALLBACK} />
) : null} ) : null}
<Route exact component={PageNotFound} path={ROUTES.NOT_FOUND} />
{isAuthDisabled || isAuthenticated ? ( {isAuthDisabled || isAuthenticated ? (
<AuthenticatedAppRouter /> <AuthenticatedAppRouter />
) : ( ) : (
@ -180,6 +179,7 @@ const AppRouter = () => {
/> />
</> </>
)} )}
<Route exact component={PageNotFound} path={ROUTES.NOT_FOUND} />
</Switch> </Switch>
</> </>
)} )}