mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Insufficient balance warning in gas customizer works for send token
This commit is contained in:
parent
c420249fb9
commit
b16946723f
@ -107,19 +107,17 @@ CustomizeGasModal.prototype.validate = function ({ gasTotal, gasLimit }) {
|
|||||||
const {
|
const {
|
||||||
amount,
|
amount,
|
||||||
balance,
|
balance,
|
||||||
primaryCurrency,
|
|
||||||
selectedToken,
|
selectedToken,
|
||||||
amountConversionRate,
|
amountConversionRate,
|
||||||
conversionRate,
|
conversionRate,
|
||||||
} = this.props
|
} = this.props
|
||||||
|
|
||||||
let error = null
|
let error = null
|
||||||
|
|
||||||
const balanceIsSufficient = isBalanceSufficient({
|
const balanceIsSufficient = isBalanceSufficient({
|
||||||
amount,
|
amount,
|
||||||
gasTotal,
|
gasTotal,
|
||||||
balance,
|
balance,
|
||||||
primaryCurrency,
|
|
||||||
selectedToken,
|
selectedToken,
|
||||||
amountConversionRate,
|
amountConversionRate,
|
||||||
conversionRate,
|
conversionRate,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user