Skip to content

Commit

Permalink
fix(show 0 balance for eth legacy)
Browse files Browse the repository at this point in the history
  • Loading branch information
sixtedemaupeou committed Jun 11, 2018
1 parent 3858d4f commit 7bec07e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -3,7 +3,7 @@ import { selectors } from 'data'
export const getData = (state, props) => {
const ethKvStoreSelectors = selectors.core.kvStore.ethereum
return {
balance: props.archived ? 0 : selectors.core.data.ethereum.getBalance(state).getOrElse(0),
balance: props.isLegacy ? 0 : selectors.core.data.ethereum.getBalance(state).getOrElse(0),
addr: (props.isLegacy
? ethKvStoreSelectors.getLegacyAccountAddress(state)
: ethKvStoreSelectors.getContext(state)).getOrElse(''),
Expand Down

0 comments on commit 7bec07e

Please sign in to comment.