[openstreetmap/openstreetmap-website] Remove unnecessary loop when rendering preferred auth provider button (PR #4999)

Anton Khorev notifications at github.com
Wed Jul 17 14:49:57 UTC 2024


If prefered_auth_button_available == true, we've already found @preferred_auth_provider among all available providers, no need to look for it again.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/4999

-- Commit Summary --

  * Remove unnecessary loop when rendering preferred auth provider button

-- File Changes --

    M app/views/application/_auth_providers.html.erb (8)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/4999.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4999.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4999
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4999 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240717/7c0ca84c/attachment-0001.htm>


More information about the rails-dev mailing list