Skip to content

Commit

Permalink
Release/v4.98.5 (#6305)
Browse files Browse the repository at this point in the history
* fix(withdraw): put correct code after merge (#6304)

* chore(Release): v4.98.5
  • Loading branch information
mperdomo-bc committed Feb 27, 2024
1 parent 9cab708 commit d42dd02
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blockchain-wallet-v4",
"version": "4.98.4",
"version": "4.98.5",
"license": "AGPL-3.0-or-later",
"private": true,
"author": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,6 @@
"layouts.wallet.header.referafriend": "Refer a Friend",
"layouts.wallet.header.tradinglimits": "Trading Limits",
"layouts.wallet.header.walletsaddresses": "Wallets & Addresses",
"layouts.wallet.menuleft.failure.refresh": "Something went wrong. Please refresh.",
"layouts.wallet.menuleft.navigation.airdrops": "Airdrops",
"layouts.wallet.menuleft.navigation.nfts": "NFTs",
"layouts.wallet.menutop.balance.walletbalance.show.in.crypto": "Show in Crypto",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { RootState } from 'data/rootReducer'

type SuccessStateType = {
paymentMethods: BSPaymentMethodsType
userCountryCode: string
userTier: TIER_TYPES
}

Expand All @@ -18,20 +19,22 @@ const getData = (state: RootState): RemoteDataType<string, SuccessStateType> =>
} as InvitationsType)

const userTier = selectors.modules.profile.getCurrentTier(state)
const userCountryCode = selectors.modules.profile.getUserCountryCode(state)

const filterPaymentMethods = (methods) => {
return methods.filter((m) => m.type === BSPaymentTypes.BANK_ACCOUNT || m.currency === 'USD')
}

return lift((paymentMethods, userTier) => ({
return lift((paymentMethods, userTier, userCountryCode) => ({
paymentMethods: invitations.openBanking
? paymentMethods
: {
...paymentMethods,
methods: filterPaymentMethods(paymentMethods.methods)
},
userCountryCode,
userTier
}))(paymentMethodsR, userTier)
}))(paymentMethodsR, userTier, userCountryCode)
}

export default getData

0 comments on commit d42dd02

Please sign in to comment.