From 30d17af9bf321c80a9f0a66b749ad3c0e4fd3200 Mon Sep 17 00:00:00 2001 From: Ivo Date: Mon, 18 Dec 2023 15:11:34 -0400 Subject: [PATCH] fix: wrong path redirects --- apps/ui/app/[locale]/(auth)/login/LoginForm.tsx | 2 +- apps/ui/app/[locale]/(auth)/login/page.tsx | 2 +- apps/ui/app/[locale]/(auth)/register/RegisterForm.tsx | 2 +- apps/ui/app/[locale]/(auth)/register/page.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/ui/app/[locale]/(auth)/login/LoginForm.tsx b/apps/ui/app/[locale]/(auth)/login/LoginForm.tsx index 92a0e2d..0df0ffd 100644 --- a/apps/ui/app/[locale]/(auth)/login/LoginForm.tsx +++ b/apps/ui/app/[locale]/(auth)/login/LoginForm.tsx @@ -56,7 +56,7 @@ export default function LoginForm() { message: "Something went wrong. Please report to the administrators.", }); } else { - router.push("/descriptors"); + router.push("/my-molecules"); } }); } diff --git a/apps/ui/app/[locale]/(auth)/login/page.tsx b/apps/ui/app/[locale]/(auth)/login/page.tsx index 68c7f2a..9592181 100644 --- a/apps/ui/app/[locale]/(auth)/login/page.tsx +++ b/apps/ui/app/[locale]/(auth)/login/page.tsx @@ -11,7 +11,7 @@ const LoginForm = dynamic(() => import("./LoginForm"), { export default async function Page() { const session = await getSession(); - if (session) redirect("/descriptors"); + if (session) redirect("/my-molecules"); return ( diff --git a/apps/ui/app/[locale]/(auth)/register/RegisterForm.tsx b/apps/ui/app/[locale]/(auth)/register/RegisterForm.tsx index 1fc675e..40217d4 100644 --- a/apps/ui/app/[locale]/(auth)/register/RegisterForm.tsx +++ b/apps/ui/app/[locale]/(auth)/register/RegisterForm.tsx @@ -58,7 +58,7 @@ export default function RegisterForm() { color: "green", message: "Your account has been created.", }); - router.push("/descriptors"); + router.push("/my-molecules"); } }) .finally(() => { diff --git a/apps/ui/app/[locale]/(auth)/register/page.tsx b/apps/ui/app/[locale]/(auth)/register/page.tsx index f843adb..f9b0c8e 100644 --- a/apps/ui/app/[locale]/(auth)/register/page.tsx +++ b/apps/ui/app/[locale]/(auth)/register/page.tsx @@ -11,7 +11,7 @@ const RegisterForm = dynamic(() => import("./RegisterForm"), { export default async function Page() { const session = await getSession(); - if (session) redirect("/descriptors"); + if (session) redirect("/my-molecules"); return (