1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +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 GitHub
parent 751534e665
commit 1b1d039310
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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}