Skip to content

Commit

Permalink
fix(PROJECT PICKER): Add validation for empty project creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Bonitoflakes committed May 9, 2023
1 parent 698a33f commit 8766d0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/projectPicker/projectPicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const initializeProjectPicker = (textElement: HTMLElement, ID?: number) =
entryToBeModifiedID = ID;

newProjectButton.addEventListener("click", () => {
if(Store.projectFilter==='') return generateToast(`Type something first to create a new project`, false);
__updateProjectStatus(textToBeModified);
generateToast(`Project ${Store.activeProject} was created successfully.`, true);
});
Expand Down

0 comments on commit 8766d0f

Please sign in to comment.