disable trigger phrase form if empty

This commit is contained in:
Mary Hipp 2024-03-12 20:24:11 -04:00 committed by Mary Hipp Rogers
parent 2a648da557
commit d0d695c020

View File

@ -90,7 +90,7 @@ export const TriggerPhrases = () => {
size="sm" size="sm"
type="submit" type="submit"
onClick={addTriggerPhrase} onClick={addTriggerPhrase}
isDisabled={Boolean(errors.length)} isDisabled={!phrase || Boolean(errors.length)}
isLoading={isLoading} isLoading={isLoading}
> >
{t('common.add')} {t('common.add')}