Skip to content

Commit

Permalink
fix(mobile): redirect-to channels upon login
Browse files Browse the repository at this point in the history
  • Loading branch information
prathameshkurunkar7 committed Mar 6, 2024
1 parent b8374e7 commit 7077e31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mobile/src/pages/auth/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const Login = (props: LoginWithEmailProps) => {
return login({ username: values.email, password: values.password }).then(() => {
//Reload the page so that the boot info is fetched again
const URL = import.meta.env.VITE_BASE_NAME ? `/${import.meta.env.VITE_BASE_NAME}` : ``
window.location.replace(`${URL}/channel`)
window.location.replace(`${URL}/channels`)
}).catch((error) => { setError(error) })
}
}
Expand Down
2 changes: 1 addition & 1 deletion mobile/src/pages/auth/TwoFactor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const TwoFactor = ({ loginWithTwoFAResponse, setIsTwoFactorEnabled }: Two
return login(credentials).then((res) => {
//Reload the page so that the boot info is fetched again
const URL = import.meta.env.VITE_BASE_NAME ? `/${import.meta.env.VITE_BASE_NAME}` : ``
window.location.replace(`${URL}/channel`)
window.location.replace(`${URL}/channels`)
}).catch((err)=>{
setError(err);
})
Expand Down

0 comments on commit 7077e31

Please sign in to comment.