Skip to content

Commit

Permalink
Fix icon for chosen star
Browse files Browse the repository at this point in the history
  • Loading branch information
olliebennett committed May 4, 2024
1 parent 94e29df commit 2ed7044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/ratings/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<% 1.upto(5).each do |score| %>
<% rating_users = others_ratings.select { |r| r.score == score }.map { |r| r.user.display_name } %>
<% btn_data = { score: score } %>
<% btn_icon = rating_users.any? ? 'star-exclamation' : 'star' %>
<% btn_icon = rating_users.any? ? 'heart' : 'star' %>
<% rating_users.unshift('You') if rating.score == score %>
<% if rating_users.any? %>
<%# We specify container: 'body' to avoid rendering problems in more complex components %>
Expand Down

0 comments on commit 2ed7044

Please sign in to comment.