Skip to content

Commit

Permalink
Fix bug with Connect Bank Account - No limit for entering amount in t…
Browse files Browse the repository at this point in the history
…ransition field
  • Loading branch information
ZhenjaHorbach committed Feb 22, 2024
1 parent 392efc7 commit c3e9292
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3108,6 +3108,8 @@ const CONST = {
*/
ADDITIONAL_ALLOWED_CHARACTERS: 20,

VALIDATION_REIMBURSEMENT_INPUT_LIMIT: 20,

REFERRAL_PROGRAM: {
CONTENT_TYPES: {
MONEY_REQUEST: 'request',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ function BankAccountValidationForm({requiresTwoFactorAuth, reimbursementAccount,
containerStyles={[styles.mb6]}
inputMode={CONST.INPUT_MODE.DECIMAL}
label={`${translate('connectBankAccountStep.validationInputLabel')} 1`}
maxLength={CONST.VALIDATION_REIMBURSEMENT_INPUT_LIMIT}
/>
<InputWrapper
InputComponent={TextInput}
Expand All @@ -121,6 +122,7 @@ function BankAccountValidationForm({requiresTwoFactorAuth, reimbursementAccount,
containerStyles={[styles.mb6]}
inputMode={CONST.INPUT_MODE.DECIMAL}
label={`${translate('connectBankAccountStep.validationInputLabel')} 2`}
maxLength={CONST.VALIDATION_REIMBURSEMENT_INPUT_LIMIT}
/>
<InputWrapper
InputComponent={TextInput}
Expand All @@ -129,6 +131,7 @@ function BankAccountValidationForm({requiresTwoFactorAuth, reimbursementAccount,
containerStyles={[styles.mb6]}
inputMode={CONST.INPUT_MODE.DECIMAL}
label={`${translate('connectBankAccountStep.validationInputLabel')} 3`}
maxLength={CONST.VALIDATION_REIMBURSEMENT_INPUT_LIMIT}
/>
</View>
{!requiresTwoFactorAuth && (
Expand Down

0 comments on commit c3e9292

Please sign in to comment.