From a18346a5a73cb2729e601a2d58f7699fc3f17954 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Mon, 25 Mar 2019 14:38:29 -0230 Subject: [PATCH] Don't include tx value in calculation of balance sufficiency for cancel button disabling. --- .../transaction-list-item/transaction-list-item.container.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/components/app/transaction-list-item/transaction-list-item.container.js b/ui/app/components/app/transaction-list-item/transaction-list-item.container.js index 73ec91e733ea..de8a3bbba741 100644 --- a/ui/app/components/app/transaction-list-item/transaction-list-item.container.js +++ b/ui/app/components/app/transaction-list-item/transaction-list-item.container.js @@ -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,