Skip to content

Commit

Permalink
fixes adopter liked pets bug (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasugaijin authored Sep 27, 2024
1 parent 4ab24f3 commit 007914e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<%= pet.name %>
</h3>
<% end %>
<% if allowed_to?(:create?, Like, pet: pet) %>
<% if allowed_to?(:create?, Like, context: {pet: pet}) %>
<div class='text-end' id="like_button_pet_<%= pet.id %>">
<%= render LikeButtonComponent.new(pet: pet, like: @likes_by_id[pet.id]) %>
</div>
Expand Down

0 comments on commit 007914e

Please sign in to comment.