1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 12:29:06 +01:00

EIP-1559 - Ensure form always displays when there are errors (#11787)

This commit is contained in:
David Walsh 2021-08-05 20:25:23 -05:00 committed by Dan Miller
parent 2089767d96
commit 39e5750981

View File

@ -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({
</button>
)}
{!requireDappAcknowledgement &&
(showAdvancedForm || showAdvancedInlineGasIfPossible) && (
(showAdvancedForm ||
hasGasErrors ||
showAdvancedInlineGasIfPossible) && (
<AdvancedGasControls
gasEstimateType={gasEstimateType}
isGasEstimatesLoading={isGasEstimatesLoading}