Fixing EditGasDisplay console errors (#11797)

feature/default_network_editable
ryanml 3 years ago committed by GitHub
parent 6059f997f7
commit 504e74fbed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/components/app/advanced-gas-controls/advanced-gas-controls.component.js
  2. 2
      ui/components/app/edit-gas-display/edit-gas-display.component.js
  3. 3
      ui/pages/confirm-transaction-base/confirm-transaction-base.component.js

@ -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…
Cancel
Save