From 6d54897cfbe7f3fe3303e05f0bded7d2073def67 Mon Sep 17 00:00:00 2001 From: Olusegun Akintayo Date: Wed, 2 Mar 2022 19:59:31 +0400 Subject: [PATCH] Fixed these issues in v10.11.0 (#13806) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ui/components/ui/typography/typography.js | 1 + ui/pages/swaps/slippage-buttons/slippage-buttons.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/components/ui/typography/typography.js b/ui/components/ui/typography/typography.js index 33af8d664..8c9e4e272 100644 --- a/ui/components/ui/typography/typography.js +++ b/ui/components/ui/typography/typography.js @@ -86,5 +86,6 @@ Typography.propTypes = { 'div', 'dt', 'dd', + 'ul', ]), }; diff --git a/ui/pages/swaps/slippage-buttons/slippage-buttons.js b/ui/pages/swaps/slippage-buttons/slippage-buttons.js index c2b3986f1..d542f2299 100644 --- a/ui/pages/swaps/slippage-buttons/slippage-buttons.js +++ b/ui/pages/swaps/slippage-buttons/slippage-buttons.js @@ -238,7 +238,7 @@ SlippageButtons.propTypes = { maxAllowedSlippage: PropTypes.number.isRequired, currentSlippage: PropTypes.number, smartTransactionsEnabled: PropTypes.bool.isRequired, - smartTransactionsOptInStatus: PropTypes.object, + smartTransactionsOptInStatus: PropTypes.bool, setSmartTransactionsOptInStatus: PropTypes.func, currentSmartTransactionsError: PropTypes.string, };