mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fixing EditGasDisplay console errors (#11797)
This commit is contained in:
parent
6059f997f7
commit
504e74fbed
@ -140,5 +140,5 @@ AdvancedGasControls.propTypes = {
|
|||||||
maxPriorityFeeFiat: PropTypes.string,
|
maxPriorityFeeFiat: PropTypes.string,
|
||||||
maxFeeFiat: PropTypes.string,
|
maxFeeFiat: PropTypes.string,
|
||||||
gasErrors: PropTypes.object,
|
gasErrors: PropTypes.object,
|
||||||
minimumGasLimit: PropTypes.number,
|
minimumGasLimit: PropTypes.string,
|
||||||
};
|
};
|
||||||
|
@ -312,7 +312,7 @@ EditGasDisplay.propTypes = {
|
|||||||
gasErrors: PropTypes.object,
|
gasErrors: PropTypes.object,
|
||||||
gasWarnings: PropTypes.object,
|
gasWarnings: PropTypes.object,
|
||||||
onManualChange: PropTypes.func,
|
onManualChange: PropTypes.func,
|
||||||
minimumGasLimit: PropTypes.number,
|
minimumGasLimit: PropTypes.string,
|
||||||
balanceError: PropTypes.bool,
|
balanceError: PropTypes.bool,
|
||||||
estimatesUnavailableWarning: PropTypes.bool,
|
estimatesUnavailableWarning: PropTypes.bool,
|
||||||
hasGasErrors: PropTypes.bool,
|
hasGasErrors: PropTypes.bool,
|
||||||
|
@ -309,6 +309,7 @@ export default class ConfirmTransactionBase extends Component {
|
|||||||
return (
|
return (
|
||||||
<UserPreferencedCurrencyDisplay
|
<UserPreferencedCurrencyDisplay
|
||||||
type={PRIMARY}
|
type={PRIMARY}
|
||||||
|
key="total-max-amount"
|
||||||
value={addHexes(txData.txParams.value, hexMaximumTransactionFee)}
|
value={addHexes(txData.txParams.value, hexMaximumTransactionFee)}
|
||||||
hideLabel={!useNativeCurrencyAsPrimaryCurrency}
|
hideLabel={!useNativeCurrencyAsPrimaryCurrency}
|
||||||
/>
|
/>
|
||||||
@ -329,6 +330,7 @@ export default class ConfirmTransactionBase extends Component {
|
|||||||
return (
|
return (
|
||||||
<UserPreferencedCurrencyDisplay
|
<UserPreferencedCurrencyDisplay
|
||||||
type={PRIMARY}
|
type={PRIMARY}
|
||||||
|
key="total-detail-value"
|
||||||
value={hexTransactionTotal}
|
value={hexTransactionTotal}
|
||||||
hideLabel={!useNativeCurrencyAsPrimaryCurrency}
|
hideLabel={!useNativeCurrencyAsPrimaryCurrency}
|
||||||
/>
|
/>
|
||||||
@ -347,6 +349,7 @@ export default class ConfirmTransactionBase extends Component {
|
|||||||
return (
|
return (
|
||||||
<UserPreferencedCurrencyDisplay
|
<UserPreferencedCurrencyDisplay
|
||||||
type={SECONDARY}
|
type={SECONDARY}
|
||||||
|
key="total-detail-text"
|
||||||
value={hexTransactionTotal}
|
value={hexTransactionTotal}
|
||||||
hideLabel={Boolean(useNativeCurrencyAsPrimaryCurrency)}
|
hideLabel={Boolean(useNativeCurrencyAsPrimaryCurrency)}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user