Skip to content

Commit

Permalink
Don't break on institution nil
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Aug 18, 2022
1 parent 8418fd9 commit 3c709de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/auth/_provider_button.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<%= image_tag institution_logo(institution&.logo || provider.logo), class: "img-fluid" %>
</div>
<div class="option-btn-title">
<h3><%= institution.short_name %><br>
<h3><%= institution&.short_name || provider.readable_name %><br>
<small><%= t('auth.sign_in.sign-in-with', provider: provider.readable_name) %></small>
</h3>
</div>
Expand Down

0 comments on commit 3c709de

Please sign in to comment.