diff --git a/frontend/src/component/project/Project/CreateProject/NewProjectForm.tsx b/frontend/src/component/project/Project/CreateProject/NewProjectForm.tsx index 5227ef8175..e096fb1ecb 100644 --- a/frontend/src/component/project/Project/CreateProject/NewProjectForm.tsx +++ b/frontend/src/component/project/Project/CreateProject/NewProjectForm.tsx @@ -171,7 +171,7 @@ export const NewProjectForm: React.FC = ({ = ({ label: projectEnvironments.size > 0 ? `${projectEnvironments.size} selected` - : 'Select environments', + : 'All environments', icon: , }} search={{ diff --git a/frontend/src/component/project/Project/hooks/useProjectForm.ts b/frontend/src/component/project/Project/hooks/useProjectForm.ts index 87a73464c4..be42a7549e 100644 --- a/frontend/src/component/project/Project/hooks/useProjectForm.ts +++ b/frontend/src/component/project/Project/hooks/useProjectForm.ts @@ -156,7 +156,7 @@ const useProjectForm = ( }; const validateName = () => { - if (projectName.length === 0) { + if (projectName.trim().length === 0) { setErrors((prev) => ({ ...prev, name: 'Name can not be empty.' })); return false; }