Skip to content

Commit a18346a

Browse files
committed
Don't include tx value in calculation of balance sufficiency for cancel button disabling.
1 parent 2f13a97 commit a18346a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/app/components/app/transaction-list-item/transaction-list-item.container.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ const mapStateToProps = (state, ownProps) => {
2222
const { showFiatInTestnets } = preferencesSelector(state)
2323
const isMainnet = getIsMainnet(state)
2424
const { transactionGroup: { primaryTransaction } = {} } = ownProps
25-
const { txParams: { gas: gasLimit, gasPrice, value } = {} } = primaryTransaction
25+
const { txParams: { gas: gasLimit, gasPrice } = {} } = primaryTransaction
2626
const selectedAccountBalance = accounts[getSelectedAddress(state)].balance
2727

2828
const hasEnoughCancelGas = primaryTransaction.txParams && isBalanceSufficient({
29-
amount: value,
29+
amount: '0x0',
3030
gasTotal: getHexGasTotal({
3131
gasPrice: increaseLastGasPrice(gasPrice),
3232
gasLimit,

0 commit comments

Comments
 (0)