diff options
author | Dan J Miller <danjm.com@gmail.com> | 2019-03-26 22:47:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-26 22:47:36 +0800 |
commit | ef4894b9a0cbb6758254b25aefca625dfe237cc8 (patch) | |
tree | 13b378b6db6729fe20e46b1d8b596e846d540272 | |
parent | 1859de0a28eeb4e133a5a219b1e3fdc64fb434fc (diff) | |
download | tangerine-wallet-browser-ef4894b9a0cbb6758254b25aefca625dfe237cc8.tar tangerine-wallet-browser-ef4894b9a0cbb6758254b25aefca625dfe237cc8.tar.gz tangerine-wallet-browser-ef4894b9a0cbb6758254b25aefca625dfe237cc8.tar.bz2 tangerine-wallet-browser-ef4894b9a0cbb6758254b25aefca625dfe237cc8.tar.lz tangerine-wallet-browser-ef4894b9a0cbb6758254b25aefca625dfe237cc8.tar.xz tangerine-wallet-browser-ef4894b9a0cbb6758254b25aefca625dfe237cc8.tar.zst tangerine-wallet-browser-ef4894b9a0cbb6758254b25aefca625dfe237cc8.zip |
Don't include tx value in calculation of balance sufficiency for cancel button disabling. (#6346)
-rw-r--r-- | ui/app/components/app/transaction-list-item/transaction-list-item.container.js | 4 |
1 files 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 73ec91e73..de8a3bbba 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, |