MetaMask / snaps

Extend the functionality of MetaMask using Snaps
https://metamask.io/snaps/
Other
711 stars 546 forks source link

fix: use first dropdown option as the default value #2465

Closed FrederikBolding closed 3 weeks ago

FrederikBolding commented 3 weeks ago

Fixes a problem where the default state for a dropdown would be null even though the UI would show option 1 as selected.

We fix this by using option 1 as the default state value if nothing is specified.

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.34%. Comparing base (0c166a9) to head (7cd6f4e).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2465 +/- ## ======================================= Coverage 94.33% 94.34% ======================================= Files 438 438 Lines 9039 9052 +13 Branches 1384 1391 +7 ======================================= + Hits 8527 8540 +13 Misses 512 512 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.