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 { showFiatInTestnets } = preferencesSelector(state)
|
||||||
const isMainnet = getIsMainnet(state)
|
const isMainnet = getIsMainnet(state)
|
||||||
const { transactionGroup: { primaryTransaction } = {} } = ownProps
|
const { transactionGroup: { primaryTransaction } = {} } = ownProps
|
||||||
const { txParams: { gas: gasLimit, gasPrice, value } = {} } = primaryTransaction
|
const { txParams: { gas: gasLimit, gasPrice } = {} } = primaryTransaction
|
||||||
const selectedAccountBalance = accounts[getSelectedAddress(state)].balance
|
const selectedAccountBalance = accounts[getSelectedAddress(state)].balance
|
||||||
|
|
||||||
const hasEnoughCancelGas = primaryTransaction.txParams && isBalanceSufficient({
|
const hasEnoughCancelGas = primaryTransaction.txParams && isBalanceSufficient({
|
||||||
amount: value,
|
amount: '0x0',
|
||||||
gasTotal: getHexGasTotal({
|
gasTotal: getHexGasTotal({
|
||||||
gasPrice: increaseLastGasPrice(gasPrice),
|
gasPrice: increaseLastGasPrice(gasPrice),
|
||||||
gasLimit,
|
gasLimit,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user