Skip to content

Commit

Permalink
Fix default title display for likes
Browse files Browse the repository at this point in the history
  • Loading branch information
gith-u-b authored and huacnlee committed Aug 31, 2023
1 parent 4b27ea6 commit a60eef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/likes_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def likeable_tag(likeable, opts = {})
liked = current_user.send("like_#{defined_action[:action_name]}_ids").include?(likeable.id)
end

title = t("common.unlike")
title = t("common.like")

state = if opts[:cache].blank? && liked
"active"
Expand Down

0 comments on commit a60eef4

Please sign in to comment.