From 7f862c2ca5ffe70a1b29621698f4ea8e8cd50ae7 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Tue, 20 May 2025 15:24:32 +0330 Subject: [PATCH] remove log --- src/config/func.ts | 2 +- src/pages/auth/components/RegisterStep2.tsx | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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 (