diff --git a/components/utility/profile-settings.tsx b/components/utility/profile-settings.tsx index 2aedc8b..373be95 100644 --- a/components/utility/profile-settings.tsx +++ b/components/utility/profile-settings.tsx @@ -146,9 +146,10 @@ export const ProfileSettings: FC = ({}) => { locale = segment } - const loginPath = locale === defaultLocale ? "/login" : `/${locale}/login` + // const loginPath = locale === defaultLocale ? "/login" : `/${locale}/login` + const homePath = locale === defaultLocale ? "/" : `/${locale}` - router.push(loginPath) + router.push(homePath) router.refresh() return }