diff --git a/packages/bruno-app/src/components/GlobalEnvironments/EnvironmentSettings/CreateEnvironment/index.js b/packages/bruno-app/src/components/GlobalEnvironments/EnvironmentSettings/CreateEnvironment/index.js index 8e18cf302d..3bf8af65e3 100644 --- a/packages/bruno-app/src/components/GlobalEnvironments/EnvironmentSettings/CreateEnvironment/index.js +++ b/packages/bruno-app/src/components/GlobalEnvironments/EnvironmentSettings/CreateEnvironment/index.js @@ -8,11 +8,11 @@ import Modal from 'components/Modal'; import { addGlobalEnvironment } from 'providers/ReduxStore/slices/global-environments'; const CreateEnvironment = ({ onClose }) => { - const global_envs = useSelector((state) => state?.globalEnvironments?.globalEnvironments); + const globalEnvs = useSelector((state) => state?.globalEnvironments?.globalEnvironments); const validateEnvironmentName = (name) => { const trimmedName = name?.toLowerCase().trim(); - return global_envs.every((env) => env?.name?.toLowerCase().trim() !== trimmedName); + return globalEnvs.every((env) => env?.name?.toLowerCase().trim() !== trimmedName); }; const dispatch = useDispatch();