Skip to content

Commit 24caf17

Browse files
author
Antonio Contreras LEMONCODE
committed
Fix validation to temporal password
1 parent 73ba7c4 commit 24caf17

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/pods/employee/components/data.validations.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ export const validationSchema: ValidationSchema = {
1616
temporalPassword: [
1717
{
1818
validator: requiredByField.validator,
19-
customArgs: { field: 'password' },
19+
customArgs: {
20+
field: 'id',
21+
condition: fieldValue => fieldValue === '',
22+
},
2023
},
2124
],
2225
},

0 commit comments

Comments
 (0)