diff --git a/app/models/appendable/reaction.rb b/app/models/appendable/reaction.rb index 77d2726b..fc253fc3 100644 --- a/app/models/appendable/reaction.rb +++ b/app/models/appendable/reaction.rb @@ -10,7 +10,7 @@ class Appendable::Reaction < Appendable before_destroy do Notification.denotify parent.user, self unless parent.user == user user.decrement! :smiled_count - answer.decrement! :smile_count + parent.decrement! :smile_count end def notification_type(*_args)