Skip to content

Commit d3f2934

Browse files
author
Clement DAL PALU
authored
Merge pull request #5551 from Expensify/aldo_vba-update-throttled-error
[Copy update] VBA Throttled error
2 parents c312069 + 70a5eca commit d3f2934

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

src/languages/en.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ export default {
414414
checkHelpLine: 'Your routing number and account number can be found on a check for the account.',
415415
validateAccountError: 'In order to finish setting up your bank account, you must validate your account. Please check your email to validate your account, and return here to finish up!',
416416
hasPhoneLoginError: 'To add a verified bank account please ensure your primary login is a valid email and try again. You can add your phone number as a secondary login.',
417-
hasBeenThrottledError: ({fromNow}) => `For security reasons, we're taking a break from bank account setup so you can double-check your company information. Please try again ${fromNow}. Sorry!`,
417+
hasBeenThrottledError: 'There was an error adding your bank account. Please wait a few minutes and try again.',
418418
buttonConfirm: 'Got it',
419419
error: {
420420
noBankAccountAvailable: 'Sorry, no bank account is available',

src/languages/es.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ export default {
414414
checkHelpLine: 'Su número de ruta y número de cuenta se pueden encontrar en un cheque de la cuenta bancaria.',
415415
validateAccountError: 'Para terminar de configurar tu cuenta bancaria, debes validar tu cuenta de Expensify. Por favor revisa tu correo electrónico para validar tu cuenta y regresa aquí para continuar.',
416416
hasPhoneLoginError: 'Para agregar una cuenta bancaria verificada, asegúrate de que tu nombre de usuario principal sea un correo electrónico válido y vuelve a intentarlo. Puedes agregar tu número de teléfono como nombre de usuario secundario.',
417-
hasBeenThrottledError: ({fromNow}) => `Por razones de seguridad, nos tomamos un descanso en la configuración de la cuenta bancaria para que pueda verificar la información de su empresa. Inténtalo de nuevo ${fromNow}. ¡Lo siento!`,
417+
hasBeenThrottledError: 'Se produjo un error al intentar agregar tu cuenta bancaria. Por favor, espera unos minutos e inténtalo de nuevo.',
418418
buttonConfirm: 'OK',
419419
error: {
420420
noBankAccountAvailable: 'Lo sentimos, no hay ninguna cuenta bancaria disponible',

src/pages/ReimbursementAccount/ReimbursementAccountPage.js

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import moment from 'moment';
21
import lodashGet from 'lodash/get';
32
import React from 'react';
43
import {withOnyx} from 'react-native-onyx';
@@ -161,18 +160,13 @@ class ReimbursementAccountPage extends React.Component {
161160

162161
const throttledDate = lodashGet(this.props, 'reimbursementAccount.throttledDate');
163162
if (throttledDate) {
164-
const throttledEnd = moment().add(24, 'hours');
165-
if (moment() < throttledEnd) {
166-
errorComponent = (
167-
<View style={[styles.m5]}>
168-
<Text>
169-
{this.props.translate('bankAccount.hasBeenThrottledError', {
170-
fromNow: throttledEnd.fromNow(),
171-
})}
172-
</Text>
173-
</View>
174-
);
175-
}
163+
errorComponent = (
164+
<View style={[styles.m5]}>
165+
<Text>
166+
{this.props.translate('bankAccount.hasBeenThrottledError')}
167+
</Text>
168+
</View>
169+
);
176170
}
177171

178172
if (errorComponent) {

0 commit comments

Comments
 (0)