Skip to content

Commit

Permalink
Fix settings redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
henry232323 committed Dec 11, 2024
1 parent 4a2a097 commit 9b92c52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/router/LoggedInRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export function LoggedInRoute() {
if (isLoading) {
return <LoadingBar color="#f11946" progress={0.5} />
} else if (isSuccess) {
if (!profile.rsi_confirmed) {
if (
!profile.rsi_confirmed &&
!["/settings", "/accountlink"].includes(location.pathname)
) {
return <Navigate to={"/settings"} />
} else {
return <Outlet />
Expand Down

0 comments on commit 9b92c52

Please sign in to comment.