From 39e5750981cec9914ed3c65c8d9a60e3c10e5403 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Thu, 5 Aug 2021 20:25:23 -0500 Subject: [PATCH] EIP-1559 - Ensure form always displays when there are errors (#11787) --- .../app/edit-gas-display/edit-gas-display.component.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 22216a2a7..28dc11458 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 @@ -77,7 +77,7 @@ export default function EditGasDisplay({ ); const [showAdvancedForm, setShowAdvancedForm] = useState( - !estimateToUse || hasGasErrors || !networkAndAccountSupport1559, + !estimateToUse || !networkAndAccountSupport1559, ); const [hideRadioButtons, setHideRadioButtons] = useState( showAdvancedInlineGasIfPossible, @@ -241,7 +241,9 @@ export default function EditGasDisplay({ )} {!requireDappAcknowledgement && - (showAdvancedForm || showAdvancedInlineGasIfPossible) && ( + (showAdvancedForm || + hasGasErrors || + showAdvancedInlineGasIfPossible) && (