diff --git a/src/components/just-in-time-access/JustInTimeAccessValidation.tsx b/src/components/just-in-time-access/JustInTimeAccessValidation.tsx index 538d384..a9eb2f0 100644 --- a/src/components/just-in-time-access/JustInTimeAccessValidation.tsx +++ b/src/components/just-in-time-access/JustInTimeAccessValidation.tsx @@ -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'), });