From c1064e0c50c36cfb1ec1f58ccc8e23096d51dd88 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Thu, 15 Jul 2021 12:22:55 -0500 Subject: [PATCH] EIP-1559 - Only show education link if on 1559-compatible network (#11535) --- .../app/edit-gas-popover/edit-gas-popover.component.js | 3 ++- 1 file changed, 2 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 59f9ebd78..cacd24f32 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 @@ -41,7 +41,8 @@ export default function EditGasPopover({ const dispatch = useDispatch(); const showSidebar = useSelector((state) => state.appState.sidebar.isOpen); - const showEducationButton = mode === EDIT_GAS_MODES.MODIFY_IN_PLACE; + const showEducationButton = + mode === EDIT_GAS_MODES.MODIFY_IN_PLACE && process.env.SHOW_EIP_1559_UI; const [showEducationContent, setShowEducationContent] = useState(false); const [warning] = useState(null);