fix: update redirect path after successful account creation in AcceptInvitePage
This commit is contained in:
parent
890f0572f3
commit
f20408ebd9
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ const AcceptInvitePage: NextPageWithLayout<InviteTokenProps> = ({
|
|||
api.invite.acceptInvite.useMutation({
|
||||
onSuccess: async () => {
|
||||
toast.success("Account creato! Effettua il login.");
|
||||
await router.push("/login");
|
||||
await router.push("/login?redirect=/area-riservata/dashboard");
|
||||
},
|
||||
onError: (error) => {
|
||||
toast.error(error.message);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue