diff --git a/src/languages/en.js b/src/languages/en.js index c3d470901f0f..00333b39bbb1 100755 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -835,6 +835,7 @@ export default { restrictedBusiness: 'Please confirm company is not on the list of restricted businesses', routingNumber: 'Please enter a valid routing number', accountNumber: 'Please enter a valid account number', + routingAndAccountNumberCannotBeSame: 'The routing number and account number cannot be the same', companyType: 'Please select a valid company type', tooManyAttempts: 'Due to a high number of login attempts, this option has been temporarily disabled for 24 hours. Please try again later or manually enter details instead.', address: 'Please enter a valid address', diff --git a/src/languages/es.js b/src/languages/es.js index ae8fd71adbed..6fc861f9a434 100644 --- a/src/languages/es.js +++ b/src/languages/es.js @@ -837,6 +837,7 @@ export default { restrictedBusiness: 'Por favor, confirma que la empresa no está en la lista de negocios restringidos', routingNumber: 'Por favor, introduce un número de ruta válido', accountNumber: 'Por favor, introduce un número de cuenta válido', + routingAndAccountNumberCannotBeSame: 'El número de ruta y el número de cuenta no pueden ser iguales', companyType: 'Por favor, selecciona un tipo de compañía válido', tooManyAttempts: 'Debido a la gran cantidad de intentos de inicio de sesión, esta opción se ha desactivado temporalmente durante 24 horas. Vuelve a intentarlo más tarde o introduce los detalles manualmente.', diff --git a/src/pages/ReimbursementAccount/BankAccountManualStep.js b/src/pages/ReimbursementAccount/BankAccountManualStep.js index 5e8f46be00e5..5e495f70b27e 100644 --- a/src/pages/ReimbursementAccount/BankAccountManualStep.js +++ b/src/pages/ReimbursementAccount/BankAccountManualStep.js @@ -46,6 +46,9 @@ class BankAccountManualStep extends React.Component { if (!routingNumber || !CONST.BANK_ACCOUNT.REGEX.SWIFT_BIC.test(routingNumber) || !ValidationUtils.isValidRoutingNumber(routingNumber)) { errorFields.routingNumber = 'bankAccount.error.routingNumber'; } + if (values.accountNumber === routingNumber) { + errorFields.accountNumber = this.props.translate('bankAccount.error.routingAndAccountNumberCannotBeSame'); + } if (!values.acceptTerms) { errorFields.acceptTerms = 'common.error.acceptTerms'; }