Skip to content

Commit

Permalink
Merge pull request #16087 from Expensify/neil-error-cleanup
Browse files Browse the repository at this point in the history
[No QA] Remove old error format after handleException refactor.
  • Loading branch information
youssef-lr authored Mar 21, 2023
2 parents 0eb36eb + 9918999 commit bf5322b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/libs/actions/CloseAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import CONST from '../../CONST';
* Clear CloseAccount error message to hide modal
*/
function clearError() {
Onyx.merge(ONYXKEYS.FORMS.CLOSE_ACCOUNT_FORM, {error: '', errors: null});
Onyx.merge(ONYXKEYS.FORMS.CLOSE_ACCOUNT_FORM, {errors: null});
}

/**
Expand Down
1 change: 0 additions & 1 deletion src/libs/actions/PaymentMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ function transferWalletBalance(paymentMethod) {
key: ONYXKEYS.WALLET_TRANSFER,
value: {
loading: true,
error: null,
errors: null,
},
},
Expand Down
2 changes: 0 additions & 2 deletions src/libs/actions/Plaid.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ function openPlaidBankAccountSelector(publicToken, bankName, allowDebit) {
key: ONYXKEYS.PLAID_DATA,
value: {
isLoading: true,
error: '',
errors: null,
bankName,
},
Expand All @@ -58,7 +57,6 @@ function openPlaidBankAccountSelector(publicToken, bankName, allowDebit) {
key: ONYXKEYS.PLAID_DATA,
value: {
isLoading: false,
error: '',
errors: null,
},
}],
Expand Down
2 changes: 1 addition & 1 deletion src/pages/settings/Payments/TransferBalancePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class TransferBalancePage extends React.Component {
const transferAmount = this.props.userWallet.currentBalance - calculatedFee;
const isTransferable = transferAmount > 0;
const isButtonDisabled = !isTransferable || !selectedAccount;
const errorMessage = !_.isEmpty(this.props.walletTransfer.errors) ? _.chain(this.props.walletTransfer.errors).values().first().value() : this.props.walletTransfer.error;
const errorMessage = !_.isEmpty(this.props.walletTransfer.errors) ? _.chain(this.props.walletTransfer.errors).values().first().value() : '';

return (
<ScreenWrapper>
Expand Down

0 comments on commit bf5322b

Please sign in to comment.