diff --git a/apps/web/app/environments/[environmentId]/surveys/[surveyId]/edit/UpdateQuestionId.tsx b/apps/web/app/environments/[environmentId]/surveys/[surveyId]/edit/UpdateQuestionId.tsx index a4fe4ab0ce..2ff269be8c 100644 --- a/apps/web/app/environments/[environmentId]/surveys/[surveyId]/edit/UpdateQuestionId.tsx +++ b/apps/web/app/environments/[environmentId]/surveys/[surveyId]/edit/UpdateQuestionId.tsx @@ -20,6 +20,8 @@ export default function UpdateQuestionId({ localSurvey, question, questionIdx, u toast.success("Question ID updated."); }; + const isInputInvalid = currentValue.trim() === "" || currentValue.includes(" "); + return (