Merge pull request #12077 from nixocio/ui_fix_typo

Update strings
This commit is contained in:
Kersom
2022-04-21 08:48:33 -04:00
committed by GitHub

View File

@@ -52,13 +52,13 @@ export default function useAdHocDetailsStep(
validate: () => {
if (Object.keys(touched).includes('module_name' || 'module_args')) {
if (!values.module_name) {
setFieldError('module_name', t`This field is must not be blank.`);
setFieldError('module_name', t`This field must not be blank.`);
}
if (
values.module_name === ('command' || 'shell') &&
!values.module_args
) {
setFieldError('module_args', t`This field is must not be blank`);
setFieldError('module_args', t`This field must not be blank`);
}
}
},