From f9378b3aa22451f4d65e9732135754d193ae68d0 Mon Sep 17 00:00:00 2001 From: Alex Donesky Date: Thu, 5 Aug 2021 17:10:04 -0500 Subject: [PATCH] Add fee level education button to swaps edit gas popover (#11785) --- .../app/edit-gas-popover/edit-gas-popover.component.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/components/app/edit-gas-popover/edit-gas-popover.component.js b/ui/components/app/edit-gas-popover/edit-gas-popover.component.js index e77554d17..c213feac3 100644 --- a/ui/components/app/edit-gas-popover/edit-gas-popover.component.js +++ b/ui/components/app/edit-gas-popover/edit-gas-popover.component.js @@ -49,7 +49,9 @@ export default function EditGasPopover({ const shouldAnimate = useShouldAnimateGasEstimations(); const showEducationButton = - mode === EDIT_GAS_MODES.MODIFY_IN_PLACE && networkAndAccountSupport1559; + (mode === EDIT_GAS_MODES.MODIFY_IN_PLACE || + mode === EDIT_GAS_MODES.SWAPS) && + networkAndAccountSupport1559; const [showEducationContent, setShowEducationContent] = useState(false); const [warning] = useState(null);