bugfix(router): redirect to /workspaces if user is authenticated, otherwise redirect to /auth route + rename /login -> /auth
This commit is contained in:
@@ -70,7 +70,7 @@ export default function Profile() {
|
||||
const data = await getUserProfile()
|
||||
setUser(data)
|
||||
} catch (error) {
|
||||
navigate("/login")
|
||||
navigate("/auth")
|
||||
} finally {
|
||||
setIsLoading(false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user