|
|
|
@ -201,7 +201,20 @@ const mapDispatchToProps = dispatch => { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const mergeProps = (stateProps, dispatchProps, ownProps) => { |
|
|
|
|
const { gasPriceButtonGroupProps, isConfirm, txId, isSpeedUp, insufficientBalance, maxModeOn, customGasPrice, customGasTotal, balance, selectedToken, tokenBalance} = stateProps |
|
|
|
|
const { |
|
|
|
|
gasPriceButtonGroupProps, |
|
|
|
|
isConfirm, |
|
|
|
|
txId, |
|
|
|
|
isSpeedUp, |
|
|
|
|
insufficientBalance, |
|
|
|
|
maxModeOn, |
|
|
|
|
customGasPrice, |
|
|
|
|
customGasTotal, |
|
|
|
|
balance, |
|
|
|
|
selectedToken, |
|
|
|
|
tokenBalance, |
|
|
|
|
customGasLimit, |
|
|
|
|
} = stateProps |
|
|
|
|
const { |
|
|
|
|
updateCustomGasPrice: dispatchUpdateCustomGasPrice, |
|
|
|
|
hideGasButtonGroup: dispatchHideGasButtonGroup, |
|
|
|
@ -251,7 +264,7 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => { |
|
|
|
|
dispatchHideSidebar() |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
disableSave: insufficientBalance || (isSpeedUp && customGasPrice === 0), |
|
|
|
|
disableSave: insufficientBalance || (isSpeedUp && customGasPrice === 0) || customGasLimit < 21000, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|