Skip to content
This repository has been archived by the owner on May 24, 2022. It is now read-only.

Commit

Permalink
url validator frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiebe-Vercoutter committed May 19, 2022
1 parent 8c29216 commit 3fc0cb5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ export default function CreateProjectPage() {
return;
}

if (infoUrl !== "" && (!infoUrl.startsWith("https://") && !infoUrl.startsWith("http://"))) {
toast.error("InfoUrl should start with https:// or http://", {
toastId: "createProjectBadUrl",
});
return;
}

let badSkill = false;
projectSkills.forEach(projectSkill => {
if (isNaN(projectSkill.slots)) {
Expand Down

0 comments on commit 3fc0cb5

Please sign in to comment.