Skip to content

Commit

Permalink
rm unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Oct 16, 2023
1 parent 9579482 commit 40b308f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/pages/settings/Wallet/PaymentMethodList.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,6 @@ const defaultProps = {
* @param {Object} item
*/
function dismissError(item) {
// Users can't dismiss company card errors because there's nothing they can do about it besides contacting their admin
if (item.canDismissError === false) {
return;
}

const isBankAccount = item.accountType === CONST.PAYMENT_METHODS.BANK_ACCOUNT;
const paymentList = isBankAccount ? ONYXKEYS.BANK_ACCOUNT_LIST : ONYXKEYS.FUND_LIST;
const paymentID = isBankAccount ? lodashGet(item, ['accountData', 'bankAccountID'], '') : lodashGet(item, ['accountData', 'fundID'], '');
Expand Down

0 comments on commit 40b308f

Please sign in to comment.