From 90bc4c38ff062a82e901c30844ac57846f3e1b03 Mon Sep 17 00:00:00 2001
From: Pranciskus Ambrazas
Date: Mon, 4 Nov 2024 12:15:48 +0200
Subject: [PATCH] some changes
---
src/pages/Login.tsx | 2 +-
src/utils/routes.tsx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/pages/Login.tsx b/src/pages/Login.tsx
index 0efe764..09147c7 100644
--- a/src/pages/Login.tsx
+++ b/src/pages/Login.tsx
@@ -23,7 +23,7 @@ interface LoginProps {
export const Login = () => {
const captchaRef = useRef();
const { isLoading: userInfoLoading } = useUserInfo();
- const isProdEnvironment = import.meta.env.VITE_USER_NODE_ENV === 'production';
+ const isProdEnvironment = import.meta.env.VITE_ENVIRONMENT === 'production';
const handleLogin = async (values: LoginProps) => {
const captchaToken = await captchaRef?.current?.execute();
const params = { ...values, captchaToken };
diff --git a/src/utils/routes.tsx b/src/utils/routes.tsx
index 421d09b..21cb74f 100644
--- a/src/utils/routes.tsx
+++ b/src/utils/routes.tsx
@@ -151,7 +151,7 @@ const routes = [
slug: slugs.placesMap,
component: ,
},
- import.meta.env.VITE_USER_NODE_ENV === 'production'
+ import.meta.env.NODE_ENV === 'prod'
? {}
: {
slug: '/profiliai/:id',