Fixed these issues in v10.11.0 (#13806)

After landing on Swap, a disclaimer of Smart Transactions appear, and an error on devTools shows the following: “invalid prop ‘type’ of value ‘ul’” supplied to ‘Typography’
    After enabling Smart Transactions, an error on devTools shows the following: “invalid prop ‘smartTransactionsOptInSatus’ of type ‘boolean supplied to ‘SlippageButtons’

Signed-off-by: Akintayo A. Olusegun <akintayo.segun@gmail.com>
feature/default_network_editable
Olusegun Akintayo 3 years ago committed by ryanml
parent 61a7c0d476
commit eb5dc7d8b0
  1. 1
      ui/components/ui/typography/typography.js
  2. 2
      ui/pages/swaps/slippage-buttons/slippage-buttons.js

@ -86,5 +86,6 @@ Typography.propTypes = {
'div', 'div',
'dt', 'dt',
'dd', 'dd',
'ul',
]), ]),
}; };

@ -238,7 +238,7 @@ SlippageButtons.propTypes = {
maxAllowedSlippage: PropTypes.number.isRequired, maxAllowedSlippage: PropTypes.number.isRequired,
currentSlippage: PropTypes.number, currentSlippage: PropTypes.number,
smartTransactionsEnabled: PropTypes.bool.isRequired, smartTransactionsEnabled: PropTypes.bool.isRequired,
smartTransactionsOptInStatus: PropTypes.object, smartTransactionsOptInStatus: PropTypes.bool,
setSmartTransactionsOptInStatus: PropTypes.func, setSmartTransactionsOptInStatus: PropTypes.func,
currentSmartTransactionsError: PropTypes.string, currentSmartTransactionsError: PropTypes.string,
}; };

Loading…
Cancel
Save