EIP-1559 - Only show education link if on 1559-compatible network (#11535)

feature/default_network_editable
David Walsh 3 years ago committed by GitHub
parent a294f02b1d
commit c1064e0c50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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);

Loading…
Cancel
Save