fix prev commit#2
This commit is contained in:
parent
fcd2b34ca7
commit
4e9a963945
@ -93,12 +93,18 @@ const customConditions: TElements<ValidationCondition> = {
|
||||
'requirementTelematic',
|
||||
]);
|
||||
|
||||
if (requirementTelematic !== 100000004 && (!telematic || !tracker)) {
|
||||
if (requirementTelematic !== 100000004 && !telematic && !tracker) {
|
||||
return {
|
||||
isValid: false,
|
||||
message: 'Не указан Тип средства контроля: (Маяк или Телематика)',
|
||||
};
|
||||
}
|
||||
if (requirementTelematic === 100000004 && (telematic || tracker)) {
|
||||
return {
|
||||
isValid: false,
|
||||
message: 'Маяк и телематика не должны быть указаны',
|
||||
};
|
||||
}
|
||||
return { isValid: true };
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user