Skip to content

Commit

Permalink
Merge pull request #25738 from pradeepmdk/fix/25685-max-length
Browse files Browse the repository at this point in the history
impose max length on merchant name in money requests
  • Loading branch information
Joel Bettner committed Aug 23, 2023
2 parents 0fb2ca4 + 3108a6a commit 65cf429
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CONST.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ const CONST = {

PULL_REQUEST_NUMBER,

MERCHANT_NAME_MAX_LENGTH: 255,

CALENDAR_PICKER: {
// Numbers were arbitrarily picked.
MIN_YEAR: CURRENT_YEAR - 100,
Expand Down
1 change: 1 addition & 0 deletions src/pages/iou/MoneyRequestMerchantPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ function MoneyRequestMerchantPage({iou, route}) {
inputID="moneyRequestMerchant"
name="moneyRequestMerchant"
defaultValue={iou.merchant}
maxLength={CONST.MERCHANT_NAME_MAX_LENGTH}
label={translate('common.merchant')}
accessibilityLabel={translate('common.merchant')}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT}
Expand Down

0 comments on commit 65cf429

Please sign in to comment.