diff --git a/src/config/func.ts b/src/config/func.ts index baa7630..8094b6d 100644 --- a/src/config/func.ts +++ b/src/config/func.ts @@ -41,7 +41,7 @@ export const getRefreshToken = () => { }; const isProduction = import.meta.env.MODE === "production"; -const domain = isProduction ? ".danakcorp.com" : undefined; +const domain = isProduction ? ".danakcorp.com" : window.location.hostname; export const setToken = (token: string) => { Cookie.set(import.meta.env.VITE_TOKEN_NAME, token, { domain }); diff --git a/src/pages/auth/components/RegisterStep2.tsx b/src/pages/auth/components/RegisterStep2.tsx index b41ed94..e3adfa2 100644 --- a/src/pages/auth/components/RegisterStep2.tsx +++ b/src/pages/auth/components/RegisterStep2.tsx @@ -65,8 +65,6 @@ const RegisterStep2: FC = () => { }, }) - console.log(formik.errors); - return (