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 GitHub
parent 137b47370e
commit 6d54897cfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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