mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +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) => {
|
||||
if (process.env.SHOW_EIP_1559_UI) {
|
||||
return (
|
||||
estimate?.suggestedMaxPriorityFeePerGas === maxPriorityFeePerGas &&
|
||||
estimate?.suggestedMaxFeePerGas === maxFeePerGas
|
||||
Number(estimate?.suggestedMaxPriorityFeePerGas) ===
|
||||
Number(maxPriorityFeePerGas) &&
|
||||
Number(estimate?.suggestedMaxFeePerGas) === Number(maxFeePerGas)
|
||||
);
|
||||
}
|
||||
return estimate?.gasPrice === gasPrice;
|
||||
|
Loading…
Reference in New Issue
Block a user