1
0
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:
Dan J Miller 2021-07-29 16:00:21 -02:30 committed by GitHub
parent 990a278177
commit b4722ff81d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;