Early return

This commit is contained in:
Eric Bailey
2024-02-29 17:57:24 -06:00
parent 5eb5dbb533
commit 1a8b69268d
+1
View File
@@ -66,6 +66,7 @@ function MutedWordsInner({}: {control: Dialog.DialogOuterProps['control']}) {
if (!sanitizedValue || !targets.length) { if (!sanitizedValue || !targets.length) {
setField('') setField('')
setError(_(msg`Please enter a valid word, tag, or phrase to mute`)) setError(_(msg`Please enter a valid word, tag, or phrase to mute`))
return
} }
try { try {