Skip to content

Commit

Permalink
Don't include tx value in calculation of balance sufficiency for canc…
Browse files Browse the repository at this point in the history
…el button disabling.
  • Loading branch information
danjm committed Mar 25, 2019
1 parent 2f13a97 commit a18346a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ const mapStateToProps = (state, ownProps) => {
const { showFiatInTestnets } = preferencesSelector(state)
const isMainnet = getIsMainnet(state)
const { transactionGroup: { primaryTransaction } = {} } = ownProps
const { txParams: { gas: gasLimit, gasPrice, value } = {} } = primaryTransaction
const { txParams: { gas: gasLimit, gasPrice } = {} } = primaryTransaction
const selectedAccountBalance = accounts[getSelectedAddress(state)].balance

const hasEnoughCancelGas = primaryTransaction.txParams && isBalanceSufficient({
amount: value,
amount: '0x0',
gasTotal: getHexGasTotal({
gasPrice: increaseLastGasPrice(gasPrice),
gasLimit,
Expand Down

0 comments on commit a18346a

Please sign in to comment.