[WEB-3762] improvement: redirect logged in user to the workspace after accepting the invitation (#6869)
This commit is contained in:
parent
d62ac6269b
commit
2d0a15efd6
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ const WorkspaceInvitationPage = observer(() => {
|
||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
if (email === currentUser?.email) {
|
if (email === currentUser?.email) {
|
||||||
router.push("/invitations");
|
router.push(`/${invitationDetail.workspace.slug}`);
|
||||||
} else {
|
} else {
|
||||||
router.push(`/?${searchParams.toString()}`);
|
router.push(`/?${searchParams.toString()}`);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue