mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Don't include tx value in calculation of balance sufficiency for cancel button disabling. (#6346)
This commit is contained in:
parent
1859de0a28
commit
ef4894b9a0
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user