Skip to content

Commit

Permalink
Capture possibility of of user coming from the loginroute once authen…
Browse files Browse the repository at this point in the history
…ticated.
  • Loading branch information
LashaunnaS committed Oct 22, 2024
1 parent f2d04c8 commit 8aa8fe0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/AuthorizedRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Navigate, Route, Routes } from 'react-router-dom';
import AppletDetailsPage from './AppletDetailsPage';
import AppletListPage from './AppletListPage';
import AutoCompletion from './AutoCompletion';
import LoginPage from './Login';
import ProfilePage from './Profile';
import PublicAutoCompletion from './PublicAutoCompletion';
import SettingsPage from './Settings';
Expand Down Expand Up @@ -50,7 +51,7 @@ function AuthorizedRoutes({ refreshToken }: Props) {
<Route path={ROUTES.transferOwnership.path} element={<TransferOwnershipPage />} />
</Route>
</Route>

<Route path={ROUTES.login.path} element={<LoginPage />} />
<Route path="*" element={<Navigate to={ROUTES.appletList.path} />} />
</Routes>
</LogoutTracker>
Expand Down

0 comments on commit 8aa8fe0

Please sign in to comment.