INFRA-3971 | Harinder | Setting max limit of grant window to 24 hours through validation

This commit is contained in:
Harinder Singh
2024-11-22 19:37:07 +05:30
parent 085b17f7a4
commit 093e98d850

View File

@@ -11,5 +11,6 @@ export const justInTimeAccessValidationSchema = yup.object({
.number()
.required('is Required')
.positive('should be positive')
.integer('should be integer'),
.integer('should be integer')
.max(24, 'should be less than or equal to 24'),
});