Update strings

Update strings
This commit is contained in:
nixocio 2022-04-20 11:13:00 -04:00
parent 8a5fd11506
commit 0b4c3e3046

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`);
}
}
},