Skip to content
This repository was archived by the owner on Jan 22, 2026. It is now read-only.

Commit 42485fc

Browse files
authored
Merge pull request #1693 from blockchain/fix/pl-v2-upgrade
fix(v2 Upgrade): if no invited flags exist default invite to true
2 parents 70cd193 + f9ab2c5 commit 42485fc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/blockchain-wallet-v4/src/redux/walletOptions

packages/blockchain-wallet-v4/src/redux/walletOptions/selectors.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
mapObjIndexed,
77
path,
88
prop,
9+
propOr,
910
toUpper,
1011
set
1112
} from 'ramda'
@@ -39,7 +40,7 @@ export const getSupportedCoins = createDeepEqualSelector(
3940
[getInvitations, getWebOptions],
4041
(invitationsR, webOptionsR) => {
4142
const addInvited = (obj, coin) => {
42-
const invited = invitationsR.map(prop(coin)).getOrElse(false)
43+
const invited = invitationsR.map(propOr(true, coin)).getOrElse(false)
4344
return set(lensProp('invited'), invited, obj)
4445
}
4546

0 commit comments

Comments
 (0)