fixed bugs with env and password reset

This commit is contained in:
Vladyslav Matsiiako
2023-06-14 21:27:37 -07:00
parent 7088b3c9d8
commit 391e37d49e
4 changed files with 13 additions and 10 deletions
@@ -41,12 +41,11 @@ import {
CreateServiceToken,
CreateUpdateEnvFormData,
CreateWsTag,
E2EESection,
EnvironmentSection,
ProjectIndexSecretsSection,
ProjectNameChangeSection,
ServiceTokenSection,
E2EESection
} from './components';
ServiceTokenSection} from './components';
export const ProjectSettingsPage = () => {
const { t } = useTranslation();
@@ -91,7 +90,7 @@ export const ProjectSettingsPage = () => {
// get user subscription
const { subscription } = useSubscription();
const host = window.location.origin;
const isEnvServiceAllowed = ((currentWorkspace?.environments || []).length < (subscription?.envLimit || 3) || host !== 'https://app.infisical.com');
const isEnvServiceAllowed = (((currentWorkspace?.environments || []).length < (subscription?.environmentLimit || 3)) || host !== 'https://app.infisical.com');
const onRenameWorkspace = async (name: string) => {
try {