diff --git a/frontend/src/views/projectViews/CreateProjectPage/CreateProjectPage.tsx b/frontend/src/views/projectViews/CreateProjectPage/CreateProjectPage.tsx index 89d05ef4c..5966122c6 100644 --- a/frontend/src/views/projectViews/CreateProjectPage/CreateProjectPage.tsx +++ b/frontend/src/views/projectViews/CreateProjectPage/CreateProjectPage.tsx @@ -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)) {