Skip to content

Commit

Permalink
fix(router): show login form when logging out
Browse files Browse the repository at this point in the history
  • Loading branch information
tthvo committed Oct 24, 2023
1 parent b4cc75c commit caf252b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ const AppRoutes: React.FC<AppRoutesProps> = (_) => {
);
return <Route key={path} path={path} element={content} />;
})
.concat([<Route key={'not-found'} path={'*'} element={<PageNotFound />} />])}
.concat([<Route key={'not-found'} path={'*'} element={loggedIn ? <PageNotFound /> : <Login />} />])}
</Routes>
);
};
Expand Down

0 comments on commit caf252b

Please sign in to comment.