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:
parent
2089767d96
commit
39e5750981
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user