Skip to content

Commit

Permalink
Fix to having radio buttons in advanced gas inputs pre-selected (Meta…
Browse files Browse the repository at this point in the history
…Mask#11669)

* Ensure fees match in use gas inputs

* Lint fix
  • Loading branch information
danjm authored Jul 29, 2021
1 parent 990a278 commit b4722ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/hooks/useGasFeeInputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b4722ff

Please sign in to comment.