diff --git a/survey-frontend/src/SurveyComponent.tsx b/survey-frontend/src/SurveyComponent.tsx index d000ea6b332331cf21939f3889227351262ec885..99c5d788bc0aea88a0cc1f3e9440c88404883757 100644 --- a/survey-frontend/src/SurveyComponent.tsx +++ b/survey-frontend/src/SurveyComponent.tsx @@ -23,7 +23,7 @@ function validateWebsiteUrl(params) { } try { const url = new URL(value); - return url.protocol === 'http:' || url.protocol === 'https:'; + return !!url } catch (err) { return false; }