File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -108,6 +108,13 @@ function AddressForm({
108108 errors [ fieldKey ] = translate ( 'common.error.fieldRequired' ) ;
109109 } ) ;
110110
111+ if ( values . addressLine1 . length > CONST . FORM_CHARACTER_LIMIT ) {
112+ errors . addressLine1 = translate ( 'common.error.characterLimitExceedCounter' , {
113+ length : values . addressLine1 . length ,
114+ limit : CONST . FORM_CHARACTER_LIMIT ,
115+ } ) ;
116+ }
117+
111118 if ( values . addressLine2 . length > CONST . FORM_CHARACTER_LIMIT ) {
112119 errors . addressLine2 = translate ( 'common.error.characterLimitExceedCounter' , {
113120 length : values . addressLine2 . length ,
@@ -180,7 +187,6 @@ function AddressForm({
180187 zipCode : INPUT_IDS . ZIP_POST_CODE ,
181188 country : INPUT_IDS . COUNTRY as Country ,
182189 } }
183- maxInputLength = { CONST . FORM_CHARACTER_LIMIT }
184190 shouldSaveDraft = { shouldSaveDraft }
185191 />
186192 </ View >
You can’t perform that action at this time.
0 commit comments