From c3e9292dbc41e76449d45ba73c7669025051c0ea Mon Sep 17 00:00:00 2001 From: Yauheni Date: Thu, 22 Feb 2024 21:31:44 +0100 Subject: [PATCH] Fix bug with Connect Bank Account - No limit for entering amount in transition field --- src/CONST.ts | 2 ++ .../components/BankAccountValidationForm.tsx | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/CONST.ts b/src/CONST.ts index 008002a71078..147a88b724aa 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -3108,6 +3108,8 @@ const CONST = { */ ADDITIONAL_ALLOWED_CHARACTERS: 20, + VALIDATION_REIMBURSEMENT_INPUT_LIMIT: 20, + REFERRAL_PROGRAM: { CONTENT_TYPES: { MONEY_REQUEST: 'request', diff --git a/src/pages/ReimbursementAccount/ConnectBankAccount/components/BankAccountValidationForm.tsx b/src/pages/ReimbursementAccount/ConnectBankAccount/components/BankAccountValidationForm.tsx index 0e8192b60416..6a18fba22bf9 100644 --- a/src/pages/ReimbursementAccount/ConnectBankAccount/components/BankAccountValidationForm.tsx +++ b/src/pages/ReimbursementAccount/ConnectBankAccount/components/BankAccountValidationForm.tsx @@ -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} /> {!requiresTwoFactorAuth && (