mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix to having radio buttons in advanced gas inputs pre-selected (#11669)
* Ensure fees match in use gas inputs * Lint fix
This commit is contained in:
parent
990a278177
commit
b4722ff81d
@ -97,8 +97,9 @@ function getMatchingEstimateFromGasFees(
|
|||||||
findKey(gasFeeEstimates, (estimate) => {
|
findKey(gasFeeEstimates, (estimate) => {
|
||||||
if (process.env.SHOW_EIP_1559_UI) {
|
if (process.env.SHOW_EIP_1559_UI) {
|
||||||
return (
|
return (
|
||||||
estimate?.suggestedMaxPriorityFeePerGas === maxPriorityFeePerGas &&
|
Number(estimate?.suggestedMaxPriorityFeePerGas) ===
|
||||||
estimate?.suggestedMaxFeePerGas === maxFeePerGas
|
Number(maxPriorityFeePerGas) &&
|
||||||
|
Number(estimate?.suggestedMaxFeePerGas) === Number(maxFeePerGas)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return estimate?.gasPrice === gasPrice;
|
return estimate?.gasPrice === gasPrice;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user