diff --git a/ui/components/app/edit-gas-display/edit-gas-display.component.js b/ui/components/app/edit-gas-display/edit-gas-display.component.js index 1ac6a810d..eee8904cc 100644 --- a/ui/components/app/edit-gas-display/edit-gas-display.component.js +++ b/ui/components/app/edit-gas-display/edit-gas-display.component.js @@ -80,6 +80,11 @@ export default function EditGasDisplay({ const networkSupports1559 = useSelector(isEIP1559Network); const showTopError = balanceError; + const showRadioButtons = + networkSupports1559 && + !requireDappAcknowledgement && + ![EDIT_GAS_MODES.SPEED_UP, EDIT_GAS_MODES.CANCEL].includes(mode); + let errorKey; if (balanceError) { errorKey = 'insufficientFunds'; @@ -163,35 +168,32 @@ export default function EditGasDisplay({ {t('gasDisplayAcknowledgeDappButtonText')} )} - {networkSupports1559 && - !requireDappAcknowledgement && - ![EDIT_GAS_MODES.SPEED_UP, EDIT_GAS_MODES.CANCEL].includes(mode) && ( - - )} - {!requireDappAcknowledgement && ( + {showRadioButtons && ( + + )} + {!requireDappAcknowledgement && showRadioButtons && (