diff --git a/packages/react-components/lib/tasks/types/patrol.tsx b/packages/react-components/lib/tasks/types/patrol.tsx index 5fa3ea4d5..707dff5e4 100644 --- a/packages/react-components/lib/tasks/types/patrol.tsx +++ b/packages/react-components/lib/tasks/types/patrol.tsx @@ -125,6 +125,10 @@ export function PatrolTaskForm({ onChange(desc); }; + React.useEffect(() => { + onValidate(isPatrolTaskDescriptionValid(taskDesc)); + }, [onValidate, taskDesc]); + return (