Skip to content

Commit

Permalink
some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ambrazasp committed Nov 4, 2024
1 parent d2719e2 commit 90bc4c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface LoginProps {
export const Login = () => {
const captchaRef = useRef<any>();
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 };
Expand Down
2 changes: 1 addition & 1 deletion src/utils/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const routes = [
slug: slugs.placesMap,
component: <PlacesMap />,
},
import.meta.env.VITE_USER_NODE_ENV === 'production'
import.meta.env.NODE_ENV === 'prod'
? {}
: {
slug: '/profiliai/:id',
Expand Down

0 comments on commit 90bc4c3

Please sign in to comment.