Remove unnecessary loop when rendering preferred auth provider button
This commit is contained in:
parent
38cb875c20
commit
206012ae8e
1 changed files with 1 additions and 7 deletions
|
@ -13,13 +13,7 @@
|
|||
|
||||
<% if prefered_auth_button_available %>
|
||||
<div class="col justify-content-center d-flex align-items-center flex-wrap">
|
||||
<% %w[google facebook microsoft github wikipedia].each do |provider| %>
|
||||
<% if Settings.key?("#{provider}_auth_id".to_sym) -%>
|
||||
<% if @preferred_auth_provider == provider %>
|
||||
<%= auth_button_preferred provider %>
|
||||
<% end %>
|
||||
<% end -%>
|
||||
<% end -%>
|
||||
<%= auth_button_preferred @preferred_auth_provider %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue