Skip to content

Commit

Permalink
Also new total
Browse files Browse the repository at this point in the history
  • Loading branch information
tmashuang committed Mar 10, 2020
1 parent 8f4033f commit c97e6ec
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const mapStateToProps = (state, ownProps) => {

const isTokenSelected = Boolean(getSelectedToken(state))

const newTotalEth = maxModeOn ? addHexWEIsToRenderableEth(balance, '0x0') : addHexWEIsToRenderableEth(value, customGasTotal)
const newTotalEth = maxModeOn & !isTokenSelected ? addHexWEIsToRenderableEth(balance, '0x0') : addHexWEIsToRenderableEth(value, customGasTotal)

const sendAmount = maxModeOn && !isTokenSelected ? subtractHexWEIsFromRenderableEth(balance, customGasTotal) : addHexWEIsToRenderableEth(value, '0x0')

Expand Down

0 comments on commit c97e6ec

Please sign in to comment.