@@ -60,7 +60,8 @@ export const ExceptionFormPage: React.FC = () => {
60
60
. required ( 'Business name is required' ) ,
61
61
fileType : Yup . string ( ) . required ( 'File type is required' ) ,
62
62
fieldCode : Yup . string ( ) . required ( 'Field code is required' ) ,
63
- expiration_date : Yup . date ( ) . required ( 'Expiration date is required' )
63
+ expiration_date : Yup . date ( )
64
+ . required ( 'Expiration date is required' )
64
65
. max ( '9999-12-31' , 'Expiration date must be MM/DD/YYYY' )
65
66
. min ( '0001-01-01' , 'Expiration date must be MM/DD/YYYY' ) ,
66
67
requested_threshold : Yup . number ( ) . required (
@@ -81,9 +82,11 @@ export const ExceptionFormPage: React.FC = () => {
81
82
} ) ,
82
83
expirationDateOther : Yup . mixed ( ) . when ( 'exceptionType' , {
83
84
is : 'other' ,
84
- then : ( schema ) => Yup . date ( ) . required ( 'Required' )
85
- . max ( '9999-12-31' , 'Date must be MM/DD/YYYY' )
86
- . min ( '0001-01-01' , 'Date must be MM/DD/YYYY' ) ,
85
+ then : ( schema ) =>
86
+ Yup . date ( )
87
+ . required ( 'Required' )
88
+ . max ( '9999-12-31' , 'Date must be MM/DD/YYYY' )
89
+ . min ( '0001-01-01' , 'Date must be MM/DD/YYYY' ) ,
87
90
otherwise : ( schema ) => schema . strip ( ) ,
88
91
} ) ,
89
92
otherExceptionBusinessName : Yup . mixed ( ) . when ( 'exceptionType' , {
0 commit comments