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