chore: redirection to profile after workpace delete/leave (#2937)
This commit is contained in:
parent
a477161fca
commit
c2b90df498
2 changed files with 3 additions and 10 deletions
|
|
@ -75,8 +75,7 @@ export const SignInView = observer(() => {
|
|||
const workspaceSlug =
|
||||
userSettings?.workspace?.last_workspace_slug || userSettings?.workspace?.fallback_workspace_slug;
|
||||
if (workspaceSlug) router.push(`/${workspaceSlug}`);
|
||||
else if (userSettings.workspace.invites > 0) router.push("/invitations");
|
||||
else router.push("/create-workspace");
|
||||
else router.push("/profile");
|
||||
})
|
||||
.catch(() => {
|
||||
setLoading(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue