From d06c8c97e5b5c16a20654e5c22f1d645dcd1227f Mon Sep 17 00:00:00 2001 From: Alberto Date: Thu, 14 Jul 2022 16:26:35 +0200 Subject: [PATCH 01/21] Add new function --- src/libs/actions/Wallet.js | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/src/libs/actions/Wallet.js b/src/libs/actions/Wallet.js index 6f2e02cd06a1..2b3e28cc7ff8 100644 --- a/src/libs/actions/Wallet.js +++ b/src/libs/actions/Wallet.js @@ -7,6 +7,7 @@ import * as DeprecatedAPI from '../deprecatedAPI'; import CONST from '../../CONST'; import * as PaymentMethods from './PaymentMethods'; import * as Localize from '../Localize'; +import * as API from '../API'; /** * Fetch and save locally the Onfido SDK token and applicantID @@ -153,6 +154,52 @@ function buildIdologyError(idologyErrors) { return `${errorStart} ${Localize.arrayToString(errorsTranslated)}. ${errorEnd}`; } +function updatePersonalDetails(personalDetails, idologyAnswers) { + if (!personalDetails && !idologyAnswers) { + return; + } + let personalDetailsString = personalDetails ? JSON.stringify(personalDetails) : ''; + let idologyAnswersString = idologyAnswers ? JSON.stringify(idologyAnswers) : ''; + + API.write('UpdatePersonalDetailsForWallet', { + personalDetailsString, + idologyAnswersString, + }, { + optimisticData: [ + { + onyxMethod: 'merge', + key: ONYXKEYS.WALLET_ADDITIONAL_DETAILS, + value: { + isLoading: true, + error: '', + }, + + }, + ], + successData: [ + { + onyxMethod: 'merge', + key: ONYXKEYS.WALLET_ADDITIONAL_DETAILS, + value: { + isLoading: false, + error: '', + }, + + }, + ], + failureData: [ + { + onyxMethod: 'merge', + key: ONYXKEYS.WALLET_ADDITIONAL_DETAILS, + value: { + isLoading: false, + }, + + }, + ], + }); +} + /** * This action can be called repeatedly with different steps until an Expensify Wallet has been activated. * From f09e8966c8514df988fa16dae738682ea62d3bd8 Mon Sep 17 00:00:00 2001 From: Alberto Date: Thu, 14 Jul 2022 17:49:33 +0200 Subject: [PATCH 02/21] update API calls --- src/libs/actions/Wallet.js | 1 + src/pages/EnablePayments/AdditionalDetailsStep.js | 8 +++----- src/pages/EnablePayments/IdologyQuestions.js | 10 ++++------ 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/libs/actions/Wallet.js b/src/libs/actions/Wallet.js index 2b3e28cc7ff8..fd7d367e6944 100644 --- a/src/libs/actions/Wallet.js +++ b/src/libs/actions/Wallet.js @@ -408,4 +408,5 @@ export { setAdditionalDetailsQuestions, buildIdologyError, updateCurrentStep, + updatePersonalDetails, }; diff --git a/src/pages/EnablePayments/AdditionalDetailsStep.js b/src/pages/EnablePayments/AdditionalDetailsStep.js index 7d9dbcfe706d..2740cdceb10e 100644 --- a/src/pages/EnablePayments/AdditionalDetailsStep.js +++ b/src/pages/EnablePayments/AdditionalDetailsStep.js @@ -214,13 +214,11 @@ class AdditionalDetailsStep extends React.Component { if (!this.validate()) { return; } - - BankAccounts.activateWallet(CONST.WALLET.STEP.ADDITIONAL_DETAILS, { - personalDetails: { + const personalDetails = { ...this.props.walletAdditionalDetailsDraft, phoneNumber: LoginUtils.getPhoneNumberWithoutUSCountryCodeAndSpecialChars(this.props.walletAdditionalDetailsDraft.phoneNumber), - }, - }); + }; + Wallet.updatePersonalDetails(personalDetails); } /** diff --git a/src/pages/EnablePayments/IdologyQuestions.js b/src/pages/EnablePayments/IdologyQuestions.js index cd8ff54411bd..2648903cddca 100644 --- a/src/pages/EnablePayments/IdologyQuestions.js +++ b/src/pages/EnablePayments/IdologyQuestions.js @@ -7,8 +7,7 @@ import { import RadioButtons from '../../components/RadioButtons'; import withLocalize, {withLocalizePropTypes} from '../../components/withLocalize'; import styles from '../../styles/styles'; -import * as BankAccounts from '../../libs/actions/BankAccounts'; -import CONST from '../../CONST'; +import * as Wallet from '../../libs/actions/Wallet'; import Text from '../../components/Text'; import TextLink from '../../components/TextLink'; import FormScrollView from '../../components/FormScrollView'; @@ -103,12 +102,11 @@ class IdologyQuestions extends React.Component { } } - BankAccounts.activateWallet(CONST.WALLET.STEP.ADDITIONAL_DETAILS, { - idologyAnswers: { + const idologyAnswers = { answers, idNumber: this.props.idNumber, - }, - }); + }; + Wallet.updatePersonalDetails(null, idologyAnswers); return {answers, isLoading: true}; } From 6aa979541817eae7f13fa7f12d2767930eeafb3e Mon Sep 17 00:00:00 2001 From: Alberto Date: Thu, 14 Jul 2022 17:51:06 +0200 Subject: [PATCH 03/21] Add comment --- src/libs/actions/Wallet.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libs/actions/Wallet.js b/src/libs/actions/Wallet.js index fd7d367e6944..4a25e628d6cb 100644 --- a/src/libs/actions/Wallet.js +++ b/src/libs/actions/Wallet.js @@ -154,6 +154,12 @@ function buildIdologyError(idologyErrors) { return `${errorStart} ${Localize.arrayToString(errorsTranslated)}. ${errorEnd}`; } +/** + * Validates a user's provided details against a series of checks + * + * @param {Object} [personalDetails] + * @param {Object} [idologyAnswers] + */ function updatePersonalDetails(personalDetails, idologyAnswers) { if (!personalDetails && !idologyAnswers) { return; From 9ab01a7d3faf9693d864ff3af8e9d07ea90d94e5 Mon Sep 17 00:00:00 2001 From: Alberto Date: Fri, 15 Jul 2022 16:54:38 +0200 Subject: [PATCH 04/21] rename parameters --- src/libs/actions/Wallet.js | 8 ++++---- src/pages/EnablePayments/AdditionalDetailsStep.js | 1 - src/pages/EnablePayments/IdologyQuestions.js | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/libs/actions/Wallet.js b/src/libs/actions/Wallet.js index 4a25e628d6cb..71ddf55ed8d2 100644 --- a/src/libs/actions/Wallet.js +++ b/src/libs/actions/Wallet.js @@ -164,12 +164,12 @@ function updatePersonalDetails(personalDetails, idologyAnswers) { if (!personalDetails && !idologyAnswers) { return; } - let personalDetailsString = personalDetails ? JSON.stringify(personalDetails) : ''; - let idologyAnswersString = idologyAnswers ? JSON.stringify(idologyAnswers) : ''; + const personalDetailsString = personalDetails ? JSON.stringify(personalDetails) : ''; + const idologyAnswersString = idologyAnswers ? JSON.stringify(idologyAnswers) : ''; API.write('UpdatePersonalDetailsForWallet', { - personalDetailsString, - idologyAnswersString, + personalDetails: personalDetailsString, + idologyAnswers: idologyAnswersString, }, { optimisticData: [ { diff --git a/src/pages/EnablePayments/AdditionalDetailsStep.js b/src/pages/EnablePayments/AdditionalDetailsStep.js index 2740cdceb10e..5a51703a0a28 100644 --- a/src/pages/EnablePayments/AdditionalDetailsStep.js +++ b/src/pages/EnablePayments/AdditionalDetailsStep.js @@ -13,7 +13,6 @@ import withLocalize, {withLocalizePropTypes} from '../../components/withLocalize import Navigation from '../../libs/Navigation/Navigation'; import styles from '../../styles/styles'; import Text from '../../components/Text'; -import * as BankAccounts from '../../libs/actions/BankAccounts'; import CONST from '../../CONST'; import compose from '../../libs/compose'; import ONYXKEYS from '../../ONYXKEYS'; diff --git a/src/pages/EnablePayments/IdologyQuestions.js b/src/pages/EnablePayments/IdologyQuestions.js index 2648903cddca..b0c05b9b59ec 100644 --- a/src/pages/EnablePayments/IdologyQuestions.js +++ b/src/pages/EnablePayments/IdologyQuestions.js @@ -103,8 +103,8 @@ class IdologyQuestions extends React.Component { } const idologyAnswers = { - answers, - idNumber: this.props.idNumber, + answers, + idNumber: this.props.idNumber, }; Wallet.updatePersonalDetails(null, idologyAnswers); return {answers, isLoading: true}; From 14436739700d6f673f19e57b974745ac40a401e4 Mon Sep 17 00:00:00 2001 From: Alberto Date: Mon, 18 Jul 2022 19:50:01 +0200 Subject: [PATCH 05/21] handle all errors --- src/CONST.js | 3 +++ .../EnablePayments/AdditionalDetailsStep.js | 16 ++++++++-------- src/pages/EnablePayments/EnablePaymentsPage.js | 2 +- src/pages/EnablePayments/userWalletPropTypes.js | 4 ++-- 4 files changed, 14 insertions(+), 11 deletions(-) diff --git a/src/CONST.js b/src/CONST.js index 5dbb241e1a25..adda125787c4 100755 --- a/src/CONST.js +++ b/src/CONST.js @@ -516,6 +516,9 @@ const CONST = { }, }, ERROR: { + SSN: 'ssnError', + KBA: 'kbaNeeded', + KYC: 'kycFailed', FULL_SSN_NOT_FOUND: 'Full SSN not found', MISSING_FIELD: 'Missing required additional details fields', WRONG_ANSWERS: 'Wrong answers', diff --git a/src/pages/EnablePayments/AdditionalDetailsStep.js b/src/pages/EnablePayments/AdditionalDetailsStep.js index 5a51703a0a28..3cadf51d1312 100644 --- a/src/pages/EnablePayments/AdditionalDetailsStep.js +++ b/src/pages/EnablePayments/AdditionalDetailsStep.js @@ -42,7 +42,7 @@ const propTypes = { errorFields: PropTypes.objectOf(PropTypes.bool), /** Any additional error message to show */ - additionalErrorMessage: PropTypes.string, + error: PropTypes.string, /** Questions returned by Idology */ questions: PropTypes.arrayOf(PropTypes.shape({ @@ -55,7 +55,7 @@ const propTypes = { idNumber: PropTypes.string, /** If we should ask for the full SSN (when LexisNexis failed retrieving the first 5 from the last 4) */ - shouldAskForFullSSN: PropTypes.bool, + errorCode: PropTypes.string, }), /** Stores the personal details typed by the user */ @@ -69,10 +69,10 @@ const defaultProps = { walletAdditionalDetails: { errorFields: {}, loading: false, - additionalErrorMessage: '', + error: '', questions: [], idNumber: '', - shouldAskForFullSSN: false, + errorCode: '', }, walletAdditionalDetailsDraft: { legalFirstName: '', @@ -189,7 +189,7 @@ class AdditionalDetailsStep extends React.Component { errors.phoneNumber = true; } - if (this.props.walletAdditionalDetails.shouldAskForFullSSN) { + if (this.props.walletAdditionalDetails.errorCode === CONST.WALLET.ERROR.SSN) { if (!ValidationUtils.isValidSSNFullNine(this.props.walletAdditionalDetailsDraft.ssn)) { errors.ssnFull9 = true; } @@ -270,8 +270,8 @@ class AdditionalDetailsStep extends React.Component { } const isErrorVisible = _.size(this.getErrors()) > 0 - || lodashGet(this.props, 'walletAdditionalDetails.additionalErrorMessage', '').length > 0; - const shouldAskForFullSSN = this.props.walletAdditionalDetails.shouldAskForFullSSN; + || lodashGet(this.props, 'walletAdditionalDetails.error', '').length > 0; + const shouldAskForFullSSN = this.props.walletAdditionalDetails.errorCode === CONST.WALLET.ERROR.SSN; const {firstName, lastName} = PersonalDetails.extractFirstAndLastNameFromAvailableDetails(this.props.myPersonalDetails); return ( @@ -388,7 +388,7 @@ class AdditionalDetailsStep extends React.Component { onFixTheErrorsLinkPressed={() => { this.form.scrollTo({y: 0, animated: true}); }} - message={this.props.walletAdditionalDetails.additionalErrorMessage} + message={this.props.walletAdditionalDetails.error} isLoading={this.props.walletAdditionalDetails.loading} buttonText={this.props.translate('common.saveAndContinue')} /> diff --git a/src/pages/EnablePayments/EnablePaymentsPage.js b/src/pages/EnablePayments/EnablePaymentsPage.js index f1ac80846a05..79925a94fc6a 100644 --- a/src/pages/EnablePayments/EnablePaymentsPage.js +++ b/src/pages/EnablePayments/EnablePaymentsPage.js @@ -57,7 +57,7 @@ class EnablePaymentsPage extends React.Component { return ; } - if (this.props.userWallet.shouldShowFailedKYC) { + if (this.props.userWallet.errorCode === CONST.WALLET.ERROR.KYC) { return ( diff --git a/src/pages/EnablePayments/userWalletPropTypes.js b/src/pages/EnablePayments/userWalletPropTypes.js index 9cefeab81a2f..d134f9db3461 100644 --- a/src/pages/EnablePayments/userWalletPropTypes.js +++ b/src/pages/EnablePayments/userWalletPropTypes.js @@ -9,7 +9,7 @@ export default { /** Status of wallet - e.g. SILVER or GOLD */ tierName: PropTypes.string, - /** If we should show the FailedKYC view after the user submitted their info with a non fixable error */ - shouldShowFailedKYC: PropTypes.bool, + /** Error code returned by the server */ + errorCode: PropTypes.string, }), }; From 788c39d9d1333ebfcf145f245b8a463ea6b8f7cf Mon Sep 17 00:00:00 2001 From: Alberto Date: Mon, 18 Jul 2022 20:11:08 +0200 Subject: [PATCH 06/21] loading --- src/pages/EnablePayments/AdditionalDetailsStep.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/EnablePayments/AdditionalDetailsStep.js b/src/pages/EnablePayments/AdditionalDetailsStep.js index 3cadf51d1312..7bf7c685d3e9 100644 --- a/src/pages/EnablePayments/AdditionalDetailsStep.js +++ b/src/pages/EnablePayments/AdditionalDetailsStep.js @@ -36,7 +36,7 @@ const propTypes = { /** Stores additional information about the additional details step e.g. loading state and errors with fields */ walletAdditionalDetails: PropTypes.shape({ /** Are we waiting for a response? */ - loading: PropTypes.bool, + isLoading: PropTypes.bool, /** Which field needs attention? */ errorFields: PropTypes.objectOf(PropTypes.bool), @@ -68,7 +68,7 @@ const propTypes = { const defaultProps = { walletAdditionalDetails: { errorFields: {}, - loading: false, + isLoading: false, error: '', questions: [], idNumber: '', @@ -389,7 +389,7 @@ class AdditionalDetailsStep extends React.Component { this.form.scrollTo({y: 0, animated: true}); }} message={this.props.walletAdditionalDetails.error} - isLoading={this.props.walletAdditionalDetails.loading} + isLoading={this.props.walletAdditionalDetails.isLoading} buttonText={this.props.translate('common.saveAndContinue')} /> From e82e8e4f57ba63feac857656313c40800e8ac40b Mon Sep 17 00:00:00 2001 From: Alberto Date: Tue, 19 Jul 2022 15:55:30 +0200 Subject: [PATCH 07/21] spaces --- src/pages/EnablePayments/AdditionalDetailsStep.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/EnablePayments/AdditionalDetailsStep.js b/src/pages/EnablePayments/AdditionalDetailsStep.js index e149fc6c0acd..aa14fa8e8af0 100644 --- a/src/pages/EnablePayments/AdditionalDetailsStep.js +++ b/src/pages/EnablePayments/AdditionalDetailsStep.js @@ -213,9 +213,9 @@ class AdditionalDetailsStep extends React.Component { return; } const personalDetails = { - ...this.props.walletAdditionalDetailsDraft, - phoneNumber: LoginUtils.getPhoneNumberWithoutUSCountryCodeAndSpecialChars(this.props.walletAdditionalDetailsDraft.phoneNumber), - }; + ...this.props.walletAdditionalDetailsDraft, + phoneNumber: LoginUtils.getPhoneNumberWithoutUSCountryCodeAndSpecialChars(this.props.walletAdditionalDetailsDraft.phoneNumber), + }; Wallet.updatePersonalDetails(personalDetails); } From c54dc124bc2e9ef36110cba9c2728482ba5d2469 Mon Sep 17 00:00:00 2001 From: Alberto Date: Wed, 20 Jul 2022 15:39:34 +0200 Subject: [PATCH 08/21] remove idologyanswers --- src/libs/actions/Wallet.js | 8 ++------ src/pages/EnablePayments/IdologyQuestions.js | 15 ++++++++------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/src/libs/actions/Wallet.js b/src/libs/actions/Wallet.js index 71ddf55ed8d2..f640f816bc0a 100644 --- a/src/libs/actions/Wallet.js +++ b/src/libs/actions/Wallet.js @@ -158,18 +158,14 @@ function buildIdologyError(idologyErrors) { * Validates a user's provided details against a series of checks * * @param {Object} [personalDetails] - * @param {Object} [idologyAnswers] */ -function updatePersonalDetails(personalDetails, idologyAnswers) { - if (!personalDetails && !idologyAnswers) { +function updatePersonalDetails(personalDetails) { + if (!personalDetails) { return; } const personalDetailsString = personalDetails ? JSON.stringify(personalDetails) : ''; - const idologyAnswersString = idologyAnswers ? JSON.stringify(idologyAnswers) : ''; - API.write('UpdatePersonalDetailsForWallet', { personalDetails: personalDetailsString, - idologyAnswers: idologyAnswersString, }, { optimisticData: [ { diff --git a/src/pages/EnablePayments/IdologyQuestions.js b/src/pages/EnablePayments/IdologyQuestions.js index b0c05b9b59ec..1edfe0c696a6 100644 --- a/src/pages/EnablePayments/IdologyQuestions.js +++ b/src/pages/EnablePayments/IdologyQuestions.js @@ -7,7 +7,8 @@ import { import RadioButtons from '../../components/RadioButtons'; import withLocalize, {withLocalizePropTypes} from '../../components/withLocalize'; import styles from '../../styles/styles'; -import * as Wallet from '../../libs/actions/Wallet'; +import * as BankAccounts from '../../libs/actions/BankAccounts'; +import CONST from '../../CONST'; import Text from '../../components/Text'; import TextLink from '../../components/TextLink'; import FormScrollView from '../../components/FormScrollView'; @@ -102,12 +103,12 @@ class IdologyQuestions extends React.Component { } } - const idologyAnswers = { - answers, - idNumber: this.props.idNumber, - }; - Wallet.updatePersonalDetails(null, idologyAnswers); - return {answers, isLoading: true}; + BankAccounts.activateWallet(CONST.WALLET.STEP.ADDITIONAL_DETAILS, { + idologyAnswers: { + answers, + idNumber: this.props.idNumber, + }, + }); } // Else, show next question From a9712adb28e0df25321e099f4207864f688fea71 Mon Sep 17 00:00:00 2001 From: Alberto Date: Tue, 26 Jul 2022 12:43:53 +0200 Subject: [PATCH 09/21] display errors correctly --- src/pages/EnablePayments/AdditionalDetailsStep.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pages/EnablePayments/AdditionalDetailsStep.js b/src/pages/EnablePayments/AdditionalDetailsStep.js index b3b8dd401ee4..d1a67bc94310 100644 --- a/src/pages/EnablePayments/AdditionalDetailsStep.js +++ b/src/pages/EnablePayments/AdditionalDetailsStep.js @@ -41,7 +41,7 @@ const propTypes = { errorFields: PropTypes.objectOf(PropTypes.bool), /** Any additional error message to show */ - error: PropTypes.string, + errors: PropTypes.objectOf(PropTypes.string), /** Questions returned by Idology */ questions: PropTypes.arrayOf(PropTypes.shape({ @@ -65,7 +65,7 @@ const defaultProps = { walletAdditionalDetails: { errorFields: {}, isLoading: false, - error: '', + errors: {}, questions: [], idNumber: '', errorCode: '', @@ -264,10 +264,12 @@ class AdditionalDetailsStep extends React.Component { ); } + const errors = lodashGet(this.props, 'walletAdditionalDetails.errors', {}); const isErrorVisible = _.size(this.getErrors()) > 0 - || lodashGet(this.props, 'walletAdditionalDetails.error', '').length > 0; + || !_.isEmpty(errors); const shouldAskForFullSSN = this.props.walletAdditionalDetails.errorCode === CONST.WALLET.ERROR.SSN; const {firstName, lastName} = PersonalDetails.extractFirstAndLastNameFromAvailableDetails(this.props.currentUserPersonalDetails); + const errorMessage = _.isEmpty(errors) ? '' : _.values(errors[0])[0]; return ( @@ -383,7 +385,7 @@ class AdditionalDetailsStep extends React.Component { onFixTheErrorsLinkPressed={() => { this.form.scrollTo({y: 0, animated: true}); }} - message={this.props.walletAdditionalDetails.error} + message={errorMessage} isLoading={this.props.walletAdditionalDetails.isLoading} buttonText={this.props.translate('common.saveAndContinue')} /> From 83f1f8bbb8ce4feedc4412433ea123453d90eeba Mon Sep 17 00:00:00 2001 From: Alberto Date: Tue, 26 Jul 2022 12:47:20 +0200 Subject: [PATCH 10/21] typo --- src/pages/EnablePayments/AdditionalDetailsStep.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/EnablePayments/AdditionalDetailsStep.js b/src/pages/EnablePayments/AdditionalDetailsStep.js index d1a67bc94310..089f72a28ee2 100644 --- a/src/pages/EnablePayments/AdditionalDetailsStep.js +++ b/src/pages/EnablePayments/AdditionalDetailsStep.js @@ -269,7 +269,7 @@ class AdditionalDetailsStep extends React.Component { || !_.isEmpty(errors); const shouldAskForFullSSN = this.props.walletAdditionalDetails.errorCode === CONST.WALLET.ERROR.SSN; const {firstName, lastName} = PersonalDetails.extractFirstAndLastNameFromAvailableDetails(this.props.currentUserPersonalDetails); - const errorMessage = _.isEmpty(errors) ? '' : _.values(errors[0])[0]; + const errorMessage = _.isEmpty(errors) ? '' : _.values(errors)[0]; return ( From 32e2c0497a5065382757a006ad9bb1b0db5d42fe Mon Sep 17 00:00:00 2001 From: Alberto Date: Wed, 27 Jul 2022 11:53:34 +0200 Subject: [PATCH 11/21] pass multiple params --- src/libs/actions/Wallet.js | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/libs/actions/Wallet.js b/src/libs/actions/Wallet.js index ef2378bc67c9..82448ee269a3 100644 --- a/src/libs/actions/Wallet.js +++ b/src/libs/actions/Wallet.js @@ -163,9 +163,25 @@ function updatePersonalDetails(personalDetails) { if (!personalDetails) { return; } - const personalDetailsString = personalDetails ? JSON.stringify(personalDetails) : ''; + const firstName = personalDetails.legalFirstName || ''; + const lastName = personalDetails.legalLastName || ''; + const dateOfBirth = personalDetails.dob || ''; + const addressStreet = personalDetails.addressStreet || ''; + const addressCity = personalDetails.addressCity || ''; + const addressState = personalDetails.addressState || ''; + const addressZip = personalDetails.addressZip || ''; + const ssn = personalDetails.ssn || ''; + const phoneNumber = personalDetails.phoneNumber || ''; API.write('UpdatePersonalDetailsForWallet', { - personalDetails: personalDetailsString, + firstName, + lastName, + dateOfBirth, + addressStreet, + addressCity, + addressState, + addressZip, + ssn, + phoneNumber, }, { optimisticData: [ { From df7c8e06744849c12ff175c6d331704c7f1f7643 Mon Sep 17 00:00:00 2001 From: Alberto Date: Wed, 27 Jul 2022 12:32:59 +0200 Subject: [PATCH 12/21] fix dob --- src/libs/actions/Wallet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/actions/Wallet.js b/src/libs/actions/Wallet.js index 82448ee269a3..4ae956844f9f 100644 --- a/src/libs/actions/Wallet.js +++ b/src/libs/actions/Wallet.js @@ -165,7 +165,7 @@ function updatePersonalDetails(personalDetails) { } const firstName = personalDetails.legalFirstName || ''; const lastName = personalDetails.legalLastName || ''; - const dateOfBirth = personalDetails.dob || ''; + const dob = personalDetails.dob || ''; const addressStreet = personalDetails.addressStreet || ''; const addressCity = personalDetails.addressCity || ''; const addressState = personalDetails.addressState || ''; @@ -175,7 +175,7 @@ function updatePersonalDetails(personalDetails) { API.write('UpdatePersonalDetailsForWallet', { firstName, lastName, - dateOfBirth, + dob, addressStreet, addressCity, addressState, From 8012d86fc963a71df9928c97140fd332b88efe4d Mon Sep 17 00:00:00 2001 From: Alberto Date: Tue, 2 Aug 2022 12:23:44 +0200 Subject: [PATCH 13/21] use constants --- src/libs/actions/Wallet.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libs/actions/Wallet.js b/src/libs/actions/Wallet.js index 4ae956844f9f..f951661b3980 100644 --- a/src/libs/actions/Wallet.js +++ b/src/libs/actions/Wallet.js @@ -157,7 +157,7 @@ function buildIdologyError(idologyErrors) { /** * Validates a user's provided details against a series of checks * - * @param {Object} [personalDetails] + * @param {Object} personalDetails */ function updatePersonalDetails(personalDetails) { if (!personalDetails) { @@ -185,7 +185,7 @@ function updatePersonalDetails(personalDetails) { }, { optimisticData: [ { - onyxMethod: 'merge', + onyxMethod: CONST.ONYX.METHOD.MERGE, key: ONYXKEYS.WALLET_ADDITIONAL_DETAILS, value: { isLoading: true, @@ -196,7 +196,7 @@ function updatePersonalDetails(personalDetails) { ], successData: [ { - onyxMethod: 'merge', + onyxMethod: CONST.ONYX.METHOD.MERGE, key: ONYXKEYS.WALLET_ADDITIONAL_DETAILS, value: { isLoading: false, @@ -207,7 +207,7 @@ function updatePersonalDetails(personalDetails) { ], failureData: [ { - onyxMethod: 'merge', + onyxMethod: CONST.ONYX.METHOD.MERGE, key: ONYXKEYS.WALLET_ADDITIONAL_DETAILS, value: { isLoading: false, From 265f33f39afde57649888ce425e9ceaaed3066eb Mon Sep 17 00:00:00 2001 From: Alberto Date: Tue, 2 Aug 2022 12:39:30 +0200 Subject: [PATCH 14/21] add offline indicator --- src/pages/EnablePayments/AdditionalDetailsStep.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/EnablePayments/AdditionalDetailsStep.js b/src/pages/EnablePayments/AdditionalDetailsStep.js index f1683b48be0a..aa5f970f4016 100644 --- a/src/pages/EnablePayments/AdditionalDetailsStep.js +++ b/src/pages/EnablePayments/AdditionalDetailsStep.js @@ -29,6 +29,7 @@ import FormHelper from '../../libs/FormHelper'; import walletAdditionalDetailsDraftPropTypes from './walletAdditionalDetailsDraftPropTypes'; import withCurrentUserPersonalDetails, {withCurrentUserPersonalDetailsPropTypes, withCurrentUserPersonalDetailsDefaultProps} from '../../components/withCurrentUserPersonalDetails'; import * as PersonalDetails from '../../libs/actions/PersonalDetails'; +import OfflineIndicator from '../../components/OfflineIndicator'; const propTypes = { ...withLocalizePropTypes, @@ -394,6 +395,7 @@ class AdditionalDetailsStep extends React.Component { isLoading={this.props.walletAdditionalDetails.loading} buttonText={this.props.translate('common.saveAndContinue')} /> + From bd82ec4f46147acd4526a34862d7b33d45213f9a Mon Sep 17 00:00:00 2001 From: Alberto Date: Tue, 2 Aug 2022 12:42:05 +0200 Subject: [PATCH 15/21] remove package changes --- package-lock.json | 138 +++++++++++++++++++++++----------------------- 1 file changed, 69 insertions(+), 69 deletions(-) diff --git a/package-lock.json b/package-lock.json index 905ff99f929a..1235182a76ca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21848,7 +21848,7 @@ "@types/json5": { "version": "0.0.29", "resolved": "https://registry.npmjs.org/@types/json5/-/json5-0.0.29.tgz", - "integrity": "sha1-7ihweulOEdK4J7y+UnC86n8+ce4=", + "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", "dev": true }, "@types/lodash": { @@ -22655,7 +22655,7 @@ "absolute-path": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/absolute-path/-/absolute-path-0.0.0.tgz", - "integrity": "sha1-p4di+9rftSl76ZsV01p4Wy8JW/c=" + "integrity": "sha512-HQiug4c+/s3WOvEnDRxXVmNtSG5s2gJM9r19BTcqjp7BWcE48PB+Y2G6jE65kqI0LpsQeMZygt/b60Gi4KxGyA==" }, "accepts": { "version": "1.3.7", @@ -22674,7 +22674,7 @@ "acorn-dynamic-import": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/acorn-dynamic-import/-/acorn-dynamic-import-2.0.2.tgz", - "integrity": "sha1-x1K9IQvvZ5UBtsbLf8hPj0cVjMQ=", + "integrity": "sha512-GKp5tQ8h0KMPWIYGRHHXI1s5tUpZixZ3IHF2jAu42wSCf6In/G873s6/y4DdKdhWvzhu1T6mE1JgvnhAKqyYYQ==", "requires": { "acorn": "^4.0.3" }, @@ -22682,7 +22682,7 @@ "acorn": { "version": "4.0.13", "resolved": "https://registry.npmjs.org/acorn/-/acorn-4.0.13.tgz", - "integrity": "sha1-EFSVrlNh1pe9GVyCUZLhrX8lN4c=" + "integrity": "sha512-fu2ygVGuMmlzG8ZeRJ0bvR41nsAkxxhbyk8bZ1SS521Z7vmgJFTQQlfz/Mp/nJexGBz+v8sC9bM6+lNgskt4Ug==" } } }, @@ -22825,7 +22825,7 @@ "align-text": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", - "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", + "integrity": "sha512-GrTZLRpmp6wIC2ztrWW9MjjTgSKccffgFagbNDOX95/dcjEcYZibYTeaOntySQLcdw1ztBoFkviiUvTMbb9MYg==", "requires": { "kind-of": "^3.0.2", "longest": "^1.0.1", @@ -23172,7 +23172,7 @@ "app-root-dir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/app-root-dir/-/app-root-dir-1.0.2.tgz", - "integrity": "sha1-OBh+wt6nV3//Az/8sSFyaS/24Rg=", + "integrity": "sha512-jlpIfsOoNoafl92Sz//64uQHGSyMrD2vYG5d8o2a4qGvyNCvXur7bzIsWtAC/6flI2RYAp3kv8rsfBtaLm7w0g==", "dev": true }, "appdirsjs": { @@ -23220,7 +23220,7 @@ "aria-query": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-3.0.0.tgz", - "integrity": "sha1-ZbP8wcoRVajJrmTW7uKX8V1RM8w=", + "integrity": "sha512-majUxHgLehQTeSA+hClx+DY09OVUqG3GtezWkF1krgLGNdlDu9l9V8DaqNMWbq4Eddc8wsyDA0hpDUtnYxQEXw==", "dev": true, "requires": { "ast-types-flow": "0.0.7", @@ -23230,7 +23230,7 @@ "arr-diff": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=" + "integrity": "sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA==" }, "arr-flatten": { "version": "1.1.0", @@ -23240,12 +23240,12 @@ "arr-union": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=" + "integrity": "sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q==" }, "array-filter": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/array-filter/-/array-filter-0.0.1.tgz", - "integrity": "sha1-fajPLiZijtcygDWB/SH2fKzS7uw=" + "integrity": "sha512-VW0FpCIhjZdarWjIz8Vpva7U95fl2Jn+b+mmFFMLn8PIVscOQcAgEznwUzTEuUHuqZqIxwzRlcaN/urTFFQoiw==" }, "array-find-index": { "version": "1.0.2", @@ -23295,17 +23295,17 @@ "array-map": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/array-map/-/array-map-0.0.0.tgz", - "integrity": "sha1-iKK6tz0c97zVwbEYoAP2b2ZfpmI=" + "integrity": "sha512-123XMszMB01QKVptpDQ7x1m1pP5NmJIG1kbl0JSPPRezvwQChxAN0Gvzo7rvR1IZ2tOL2tmiy7kY/KKgnpVVpg==" }, "array-reduce": { "version": "0.0.0", "resolved": "https://registry.npmjs.org/array-reduce/-/array-reduce-0.0.0.tgz", - "integrity": "sha1-FziZ0//Rx9k4PkR5Ul2+J4yrXys=" + "integrity": "sha512-8jR+StqaC636u7h3ye1co3lQRefgVVUQUhuAmRbDqIMeR2yuXzRvkCNQiQ5J/wbREmoBLNtp13dhaaVpZQDRUw==" }, "array-union": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", - "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", + "integrity": "sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng==", "dev": true, "requires": { "array-uniq": "^1.0.1" @@ -23314,13 +23314,13 @@ "array-uniq": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/array-uniq/-/array-uniq-1.0.3.tgz", - "integrity": "sha1-r2rId6Jcx/dOBYiUdThY39sk/bY=", + "integrity": "sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q==", "dev": true }, "array-unique": { "version": "0.3.2", "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=" + "integrity": "sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ==" }, "array.prototype.flat": { "version": "1.2.5", @@ -23933,7 +23933,7 @@ "asap": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=" + "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" }, "asar": { "version": "3.0.3", @@ -23959,7 +23959,7 @@ "ascii-table": { "version": "0.0.9", "resolved": "https://registry.npmjs.org/ascii-table/-/ascii-table-0.0.9.tgz", - "integrity": "sha1-BqZgTWpV1L9BqaR9mHLXp42jHnM=" + "integrity": "sha512-xpkr6sCDIYTPqzvjG8M3ncw1YOTaloWZOyrUmicoEifBEKzQzt+ooUpRpQ/AbOoJfO/p2ZKiyp79qHThzJDulQ==" }, "asn1": { "version": "0.2.4", @@ -24015,13 +24015,13 @@ "assert-plus": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", - "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", + "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", "dev": true }, "assign-symbols": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=" + "integrity": "sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw==" }, "ast-types": { "version": "0.14.2", @@ -24041,7 +24041,7 @@ "ast-types-flow": { "version": "0.0.7", "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz", - "integrity": "sha1-9wtzXGvKGlycItmCw+Oef+ujva0=", + "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==", "dev": true }, "async": { @@ -24071,7 +24071,7 @@ "asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", "dev": true }, "at-least-node": { @@ -24135,7 +24135,7 @@ "babel-code-frame": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", - "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", + "integrity": "sha512-XqYMR2dfdGMW+hd0IUZ2PwK+fGeFkOxZJ0wY+JaQAHzt1Zx8LcvpiZD2NiGkEG8qx0CfkAOr5xt76d1e8vG90g==", "dev": true, "requires": { "chalk": "^1.1.3", @@ -24146,19 +24146,19 @@ "ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", "dev": true }, "ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==", "dev": true }, "chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==", "dev": true, "requires": { "ansi-styles": "^2.2.1", @@ -24213,7 +24213,7 @@ "babel-helper-function-name": { "version": "6.24.1", "resolved": "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz", - "integrity": "sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=", + "integrity": "sha512-Oo6+e2iX+o9eVvJ9Y5eKL5iryeRdsIkwRYheCuhYdVHsdEQysbc2z2QkqCLIYnNxkT5Ss3ggrHdXiDI7Dhrn4Q==", "dev": true, "requires": { "babel-helper-get-function-arity": "^6.24.1", @@ -24226,7 +24226,7 @@ "babel-helper-get-function-arity": { "version": "6.24.1", "resolved": "https://registry.npmjs.org/babel-helper-get-function-arity/-/babel-helper-get-function-arity-6.24.1.tgz", - "integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=", + "integrity": "sha512-WfgKFX6swFB1jS2vo+DwivRN4NB8XUdM3ij0Y1gnC21y1tdBoe6xjVnd7NSI6alv+gZXCtJqvrTeMW3fR/c0ng==", "dev": true, "requires": { "babel-runtime": "^6.22.0", @@ -24598,7 +24598,7 @@ "babel-messages": { "version": "6.23.0", "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", - "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", + "integrity": "sha512-Bl3ZiA+LjqaMtNYopA9TYE9HP1tQ+E5dLxE0XrAzcIJeK2UqF0/EaqXwBn9esd4UmTfEab+P+UYQ1GnioFIb/w==", "dev": true, "requires": { "babel-runtime": "^6.22.0" @@ -24607,7 +24607,7 @@ "babel-plugin-add-react-displayname": { "version": "0.0.5", "resolved": "https://registry.npmjs.org/babel-plugin-add-react-displayname/-/babel-plugin-add-react-displayname-0.0.5.tgz", - "integrity": "sha1-M51M3be2X9YtHfnbn+BN4TQSK9U=", + "integrity": "sha512-LY3+Y0XVDYcShHHorshrDbt4KFWL4bSeniCtl4SYZbask+Syngk1uMPCeN9+nSiZo6zX5s0RTq/J9Pnaaf/KHw==", "dev": true }, "babel-plugin-apply-mdx-type-prop": { @@ -25110,7 +25110,7 @@ "babel-plugin-syntax-class-properties": { "version": "6.13.0", "resolved": "https://registry.npmjs.org/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz", - "integrity": "sha1-1+sjt5oxf4VDlixQW4J8fWysJ94=", + "integrity": "sha512-chI3Rt9T1AbrQD1s+vxw3KcwC9yHtF621/MacuItITfZX344uhQoANjpoSJZleAmW2tjlolqB/f+h7jIqXa7pA==", "dev": true }, "babel-plugin-syntax-trailing-function-commas": { @@ -25121,7 +25121,7 @@ "babel-plugin-transform-class-properties": { "version": "6.24.1", "resolved": "https://registry.npmjs.org/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz", - "integrity": "sha1-anl2PqYdM9NvN7YRqp3vgagbRqw=", + "integrity": "sha512-n4jtBA3OYBdvG5PRMKsMXJXHfLYw/ZOmtxCLOOwz6Ro5XlrColkStLnz1AS1L2yfPA9BKJ1ZNlmVCLjAL9DSIg==", "dev": true, "requires": { "babel-helper-function-name": "^6.24.1", @@ -25133,7 +25133,7 @@ "babel-plugin-transform-remove-console": { "version": "6.9.4", "resolved": "https://registry.npmjs.org/babel-plugin-transform-remove-console/-/babel-plugin-transform-remove-console-6.9.4.tgz", - "integrity": "sha1-uYA2DAZzhOJLNXpYjYB9PINSd4A=" + "integrity": "sha512-88blrUrMX3SPiGkT1GnvVY8E/7A+k6oj3MNvUtTIxJflFzXTw1bHkuJ/y039ouhFMp2prRn5cQGzokViYi1dsg==" }, "babel-preset-current-node-syntax": { "version": "1.0.1", @@ -25202,7 +25202,7 @@ "babel-runtime": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "integrity": "sha512-ITKNuq2wKlW1fJg9sSW52eepoYgZBggvOAHC0u/CYu/qxQ9EVzThCgR69BnSXLHjy2f7SY5zaQ4yt7H9ZVxY2g==", "dev": true, "requires": { "core-js": "^2.4.0", @@ -25220,7 +25220,7 @@ "babel-template": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", - "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", + "integrity": "sha512-PCOcLFW7/eazGUKIoqH97sO9A2UYMahsn/yRQ7uOk37iutwjq7ODtcTNF+iFDSHNfkctqsLRjLP7URnOx0T1fg==", "dev": true, "requires": { "babel-runtime": "^6.26.0", @@ -25233,7 +25233,7 @@ "babel-traverse": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", - "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", + "integrity": "sha512-iSxeXx7apsjCHe9c7n8VtRXGzI2Bk1rBSOJgCCjfyXb6v1aCqE1KSEpq/8SXuVN8Ka/Rh1WDTF0MDzkvTA4MIA==", "dev": true, "requires": { "babel-code-frame": "^6.26.0", @@ -25273,7 +25273,7 @@ "babel-types": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", - "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", + "integrity": "sha512-zhe3V/26rCWsEZK8kZN+HaQj5yQ1CilTObixFzKW1UWjqG7618Twz6YEsCnjfg5gBcJh02DrpCkS9h98ZqDY+g==", "dev": true, "requires": { "babel-runtime": "^6.26.0", @@ -25360,7 +25360,7 @@ "base-64": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/base-64/-/base-64-0.1.0.tgz", - "integrity": "sha1-eAqZyE59YAJgNhURxId2E78k9rs=" + "integrity": "sha512-Y5gU45svrR5tI2Vt/X9GPd3L0HNIKzGu202EjxrXMpuc2V2CiKgemAbUUsqYmZJvPtCXoUKjNZwBJzsNScUbXA==" }, "base64-js": { "version": "1.3.1", @@ -25370,13 +25370,13 @@ "batch": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", - "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=", + "integrity": "sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw==", "dev": true }, "batch-processor": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/batch-processor/-/batch-processor-1.0.0.tgz", - "integrity": "sha1-dclcMrdI4IUNEMKxaPa9vpiRrOg=", + "integrity": "sha512-xoLQD8gmmR32MeuBHgH0Tzd5PuSZx71ZsbhVxOCRbgktZEPe4SQy7s9Z50uPp0F/f7iw2XmkHN2xkgbMfckMDA==", "dev": true }, "bcrypt-pbkdf": { @@ -25544,7 +25544,7 @@ "bonjour": { "version": "3.5.0", "resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz", - "integrity": "sha1-jokKGD2O6aI5OzhExpGkK897yfU=", + "integrity": "sha512-RaVTblr+OnEli0r/ud8InrU7D+G0y6aJhlxaLa6Pwty4+xoxboF1BsUI45tujvRpbj9dQVoglChqonGAsjEBYg==", "dev": true, "requires": { "array-flatten": "^2.1.0", @@ -25558,7 +25558,7 @@ "boolbase": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz", - "integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24=" + "integrity": "sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww==" }, "boolean": { "version": "3.2.0", @@ -25695,7 +25695,7 @@ "brorand": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", - "integrity": "sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=" + "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==" }, "browser-process-hrtime": { "version": "1.0.0", @@ -25852,13 +25852,13 @@ "buffer-crc32": { "version": "0.2.13", "resolved": "https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz", - "integrity": "sha1-DTM+PwDqxQqhRUq9MO+MKl2ackI=", + "integrity": "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==", "dev": true }, "buffer-fill": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-1.0.0.tgz", - "integrity": "sha1-+PeLdniYiO858gXNY39o5wISKyw=", + "integrity": "sha512-T7zexNBwiiaCOGDg9xNX9PBmjrubblRkENuptryuI64URkXDFum9il/JGL8Lm8wYfAXpredVXXZz7eMHilimiQ==", "dev": true }, "buffer-from": { @@ -25875,7 +25875,7 @@ "buffer-xor": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", - "integrity": "sha1-JuYe0UIvtw3ULm42cp7VHYVf6Nk=" + "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==" }, "builder-util": { "version": "22.13.1", @@ -26022,12 +26022,12 @@ "builtin-status-codes": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", - "integrity": "sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=" + "integrity": "sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==" }, "bytes": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.0.0.tgz", - "integrity": "sha1-0ygVQE1olpn4Wk6k+odV3ROpYEg=" + "integrity": "sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw==" }, "c8": { "version": "7.11.3", @@ -26305,13 +26305,13 @@ "call-me-maybe": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.1.tgz", - "integrity": "sha1-JtII6onje1y95gJQoV8DHBak1ms=", + "integrity": "sha512-wCyFsDQkKPwwF8BDwOiWNx/9K45L/hvggQiDbve+viMNMQnWhrlYIuBk09offfwCRtCO9P6XwUttufzU11WCVw==", "dev": true }, "caller-callsite": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/caller-callsite/-/caller-callsite-2.0.0.tgz", - "integrity": "sha1-hH4PzgoiN1CpoCfFSzNzGtMVQTQ=", + "integrity": "sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ==", "requires": { "callsites": "^2.0.0" } @@ -26319,7 +26319,7 @@ "caller-path": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/caller-path/-/caller-path-2.0.0.tgz", - "integrity": "sha1-Ro+DBE42mrIBD6xfBs7uFbsssfQ=", + "integrity": "sha512-MCL3sf6nCSXOwCTzvPKhN18TU7AHTvdtam8DAogxcrJ8Rjfbbg7Lgng64H9Iy+vUV6VGFClN/TyxBkAebLRR4A==", "requires": { "caller-callsite": "^2.0.0" } @@ -26327,7 +26327,7 @@ "callsites": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-2.0.0.tgz", - "integrity": "sha1-BuuE8A7qQT2oav/vrL/7Ngk7PFA=" + "integrity": "sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ==" }, "camel-case": { "version": "4.1.1", @@ -26373,7 +26373,7 @@ "camelize": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/camelize/-/camelize-1.0.0.tgz", - "integrity": "sha1-FkpUg+Yw+kMh5a8HAg5TGDGyYJs=" + "integrity": "sha512-W2lPwkBkMZwFlPCXhIlYgxu+7gC/NUlCtdK652DAJ1JdgV0sTrvuPFshNPrFa1TY2JOkLhgdeEBplB4ezEa+xg==" }, "caniuse-lite": { "version": "1.0.30001252", @@ -26410,7 +26410,7 @@ "center-align": { "version": "0.1.3", "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", - "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", + "integrity": "sha512-Baz3aNe2gd2LP2qk5U+sDk/m4oSuwSDcBfayTCTBoWpfIGO5XFxPmjILQII4NGiZjD6DoDI6kf7gKaxkf7s3VQ==", "requires": { "align-text": "^0.1.3", "lazy-cache": "^1.0.3" @@ -26544,7 +26544,7 @@ "chromium-pickle-js": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/chromium-pickle-js/-/chromium-pickle-js-0.2.0.tgz", - "integrity": "sha1-BKEGZywYsIWrd02YPfo+oTjyIgU=", + "integrity": "sha512-1R5Fho+jBq0DDydt+/vHWj5KJNJCKdARKOCwZUen84I5BreWoLqRLANH1U87eJy1tiASPtMnGqJJq0ZsLoRPOw==", "dev": true }, "ci-info": { @@ -26634,7 +26634,7 @@ "cli-cursor": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-2.1.0.tgz", - "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", + "integrity": "sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw==", "requires": { "restore-cursor": "^2.0.0" } @@ -30323,7 +30323,7 @@ "find-up": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz", - "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", + "integrity": "sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ==", "dev": true, "requires": { "locate-path": "^2.0.0" @@ -30332,7 +30332,7 @@ "locate-path": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz", - "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", + "integrity": "sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA==", "dev": true, "requires": { "p-locate": "^2.0.0", @@ -30351,7 +30351,7 @@ "p-locate": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz", - "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", + "integrity": "sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg==", "dev": true, "requires": { "p-limit": "^1.1.0" @@ -30360,13 +30360,13 @@ "p-try": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz", - "integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=", + "integrity": "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==", "dev": true }, "path-exists": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", "dev": true } } @@ -32696,7 +32696,7 @@ "good-listener": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/good-listener/-/good-listener-1.2.2.tgz", - "integrity": "sha1-1TswzfkxPf+33JoNR3CWqm0UXFA=", + "integrity": "sha512-goW1b+d9q/HIwbVYZzZ6SsTr4IgE+WA44A0GmPIQstuOrgsFcT7VEJ48nmr9GaRtNu0XTKacFLGnBPAM6Afouw==", "requires": { "delegate": "^3.1.2" } @@ -32817,7 +32817,7 @@ "ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==", "dev": true } } @@ -44299,7 +44299,7 @@ "ajv": { "version": "4.11.8", "resolved": "https://registry.npmjs.org/ajv/-/ajv-4.11.8.tgz", - "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", + "integrity": "sha512-I/bSHSNEcFFqXLf91nchoNB9D1Kie3QKcWdchYUaoIg1+1bdWDkdfdlvdIOJbi9U8xR0y+MWc5D+won9v95WlQ==", "requires": { "co": "^4.6.0", "json-stable-stringify": "^1.0.1" @@ -44308,12 +44308,12 @@ "ajv-keywords": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-1.5.1.tgz", - "integrity": "sha1-MU3QpLM2j609/NxU7eYXG4htrzw=" + "integrity": "sha512-vuBv+fm2s6cqUyey2A7qYcvsik+GMDJsw8BARP2sDE76cqmaZVarsvHf7Vx6VJ0Xk8gLl+u3MoAPf6gKzJefeA==" }, "ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" + "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==" }, "big.js": { "version": "3.2.0", @@ -44323,7 +44323,7 @@ "camelcase": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", - "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=" + "integrity": "sha512-wzLkDa4K/mzI1OSITC+DUyjgIl/ETNHE9QvYgy6J6Jvqyyz4C0Xfd+lQhb19sX2jMpZV4IssUn0VDVmglV+s4g==" }, "cliui": { "version": "2.1.0", @@ -44508,7 +44508,7 @@ "camelcase": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=" + "integrity": "sha512-4nhGqUkc4BqbBBB4Q6zLuD7lzzrHYrjKGeYaEji/3tFR5VdJu9v+LilhGIVe8wxEJPPOeWo7eg8dwY13TZ1BNg==" }, "cliui": { "version": "3.2.0", @@ -44533,7 +44533,7 @@ "camelcase": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=" + "integrity": "sha512-4nhGqUkc4BqbBBB4Q6zLuD7lzzrHYrjKGeYaEji/3tFR5VdJu9v+LilhGIVe8wxEJPPOeWo7eg8dwY13TZ1BNg==" } } } @@ -45653,7 +45653,7 @@ "select": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/select/-/select-1.1.2.tgz", - "integrity": "sha1-DnNQrN7ICxEIUoeG7B1EGNEbOW0=" + "integrity": "sha512-OwpTSOfy6xSs1+pwcNrv0RBMOzI39Lp3qQKUTPVVPRjCdNa5JH/oPRiqsesIskK8TVgmRiHwO4KXlV2Li9dANA==" }, "select-hose": { "version": "2.0.0", From e07c38ebc87f769de3593a87a3165d90fce1fdec Mon Sep 17 00:00:00 2001 From: Alberto Date: Tue, 2 Aug 2022 15:40:12 +0200 Subject: [PATCH 16/21] update loading --- src/CONST.js | 1 + src/pages/EnablePayments/AdditionalDetailsStep.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CONST.js b/src/CONST.js index a78faa0a314f..7916ef5144db 100755 --- a/src/CONST.js +++ b/src/CONST.js @@ -533,6 +533,7 @@ const CONST = { }, }, ERROR: { + // If these get updated, we need to update the codes on the Web side too SSN: 'ssnError', KBA: 'kbaNeeded', KYC: 'kycFailed', diff --git a/src/pages/EnablePayments/AdditionalDetailsStep.js b/src/pages/EnablePayments/AdditionalDetailsStep.js index aa5f970f4016..9ea76cdc2a43 100644 --- a/src/pages/EnablePayments/AdditionalDetailsStep.js +++ b/src/pages/EnablePayments/AdditionalDetailsStep.js @@ -56,7 +56,7 @@ const propTypes = { /** ExpectID ID number related to those questions */ idNumber: PropTypes.string, - /** If we should ask for the full SSN (when LexisNexis failed retrieving the first 5 from the last 4) */ + /** Error code to determine additional behavior */ errorCode: PropTypes.string, }), @@ -392,7 +392,7 @@ class AdditionalDetailsStep extends React.Component { this.form.scrollTo({y: 0, animated: true}); }} message={errorMessage} - isLoading={this.props.walletAdditionalDetails.loading} + isLoading={this.props.walletAdditionalDetails.isLoading} buttonText={this.props.translate('common.saveAndContinue')} /> From 1f119d26697e264e277b209c0616c62a563b1e61 Mon Sep 17 00:00:00 2001 From: Alberto Date: Tue, 2 Aug 2022 15:41:51 +0200 Subject: [PATCH 17/21] remove unwanted changes --- src/pages/EnablePayments/IdologyQuestions.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/EnablePayments/IdologyQuestions.js b/src/pages/EnablePayments/IdologyQuestions.js index 1edfe0c696a6..cd8ff54411bd 100644 --- a/src/pages/EnablePayments/IdologyQuestions.js +++ b/src/pages/EnablePayments/IdologyQuestions.js @@ -109,6 +109,7 @@ class IdologyQuestions extends React.Component { idNumber: this.props.idNumber, }, }); + return {answers, isLoading: true}; } // Else, show next question From c6f5c00443e6ecfbb819c1ad9b4b2c424461b9d9 Mon Sep 17 00:00:00 2001 From: Alberto Date: Tue, 2 Aug 2022 15:49:47 +0200 Subject: [PATCH 18/21] get last error --- src/pages/EnablePayments/AdditionalDetailsStep.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/EnablePayments/AdditionalDetailsStep.js b/src/pages/EnablePayments/AdditionalDetailsStep.js index 9ea76cdc2a43..82cf9074e39a 100644 --- a/src/pages/EnablePayments/AdditionalDetailsStep.js +++ b/src/pages/EnablePayments/AdditionalDetailsStep.js @@ -274,7 +274,7 @@ class AdditionalDetailsStep extends React.Component { || !_.isEmpty(errors); const shouldAskForFullSSN = this.props.walletAdditionalDetails.errorCode === CONST.WALLET.ERROR.SSN; const {firstName, lastName} = PersonalDetails.extractFirstAndLastNameFromAvailableDetails(this.props.currentUserPersonalDetails); - const errorMessage = _.isEmpty(errors) ? '' : _.values(errors)[0]; + const errorMessage = _.isEmpty(errors) ? '' : _.last(_.values(errors)); return ( From 5caa5dbeeafa0d5d34d954571b9465ca73bcc3ee Mon Sep 17 00:00:00 2001 From: Alberto Date: Thu, 4 Aug 2022 11:09:22 +0200 Subject: [PATCH 19/21] add offline indicator again --- src/pages/EnablePayments/AdditionalDetailsStep.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/EnablePayments/AdditionalDetailsStep.js b/src/pages/EnablePayments/AdditionalDetailsStep.js index 8a7de7446f1e..4e9ee56b3459 100644 --- a/src/pages/EnablePayments/AdditionalDetailsStep.js +++ b/src/pages/EnablePayments/AdditionalDetailsStep.js @@ -390,6 +390,7 @@ class AdditionalDetailsStep extends React.Component { isLoading={this.props.walletAdditionalDetails.isLoading} buttonText={this.props.translate('common.saveAndContinue')} /> + From 65f1d8d520a5a596029aec425a8edd22f85d6299 Mon Sep 17 00:00:00 2001 From: Alberto Date: Mon, 15 Aug 2022 16:08:30 +0200 Subject: [PATCH 20/21] remove empty lines --- src/libs/actions/Wallet.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/libs/actions/Wallet.js b/src/libs/actions/Wallet.js index f951661b3980..4582af903443 100644 --- a/src/libs/actions/Wallet.js +++ b/src/libs/actions/Wallet.js @@ -191,7 +191,6 @@ function updatePersonalDetails(personalDetails) { isLoading: true, error: '', }, - }, ], successData: [ @@ -202,7 +201,6 @@ function updatePersonalDetails(personalDetails) { isLoading: false, error: '', }, - }, ], failureData: [ @@ -212,7 +210,6 @@ function updatePersonalDetails(personalDetails) { value: { isLoading: false, }, - }, ], }); From 990dbc9eb967bf5d6770e3172c604b1754da4347 Mon Sep 17 00:00:00 2001 From: Alberto Date: Mon, 15 Aug 2022 16:15:05 +0200 Subject: [PATCH 21/21] update to errors --- src/libs/actions/Wallet.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libs/actions/Wallet.js b/src/libs/actions/Wallet.js index 4582af903443..616cd93be820 100644 --- a/src/libs/actions/Wallet.js +++ b/src/libs/actions/Wallet.js @@ -189,7 +189,7 @@ function updatePersonalDetails(personalDetails) { key: ONYXKEYS.WALLET_ADDITIONAL_DETAILS, value: { isLoading: true, - error: '', + errors: [], }, }, ], @@ -199,7 +199,6 @@ function updatePersonalDetails(personalDetails) { key: ONYXKEYS.WALLET_ADDITIONAL_DETAILS, value: { isLoading: false, - error: '', }, }, ],