Skip to content

Commit

Permalink
fix(lockbox): default erc20 token request to wallet address, never lo…
Browse files Browse the repository at this point in the history
…ckbox
  • Loading branch information
schnogz committed Sep 16, 2019
1 parent d84903a commit 2867b96
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const getData = (state, coin) => {
const accountsR = selectors.core.kvStore.eth.getAccounts(state)
const availability = selectors.core.walletOptions.getCoinAvailability(
state,
propOr('ETH', coin, coin)
coin
)
const excludeLockbox = !availability
.map(propOr(true, 'lockbox'))
Expand All @@ -28,7 +28,8 @@ export const getInitialValues = (state, ownProps) => {
.getErc20CoinList(state)
.getOrElse([])
const to = to => ({ to, coin })
if (ownProps.lockboxIndex != null) {
// this will need to change if we support ERC20 tokens on Lockbox in the future
if (ownProps.lockboxIndex != null && !includes(coin, erc20List)) {
return selectors.core.common.eth
.getLockboxEthBalances(state)
.map(nth(ownProps.lockboxIndex))
Expand Down

0 comments on commit 2867b96

Please sign in to comment.