From 093e98d8500b20d36aab2bbff0bd89afe2dbb68e Mon Sep 17 00:00:00 2001 From: Harinder Singh Date: Fri, 22 Nov 2024 19:37:07 +0530 Subject: [PATCH] INFRA-3971 | Harinder | Setting max limit of grant window to 24 hours through validation --- .../just-in-time-access/JustInTimeAccessValidation.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'), });