Skip to content

Commit 72062d4

Browse files
authored
Merge pull request Expensify#72738 from nkdengineer/fix/71617
2 parents cb53ada + 65ca0b5 commit 72062d4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/AddressForm.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)