Fix `CommentSmile` notification type not being returned

This commit is contained in:
Karina Kwiatek 2022-07-21 18:22:03 +02:00 committed by Karina Kwiatek
parent 6089c57a20
commit b534dc0bb8
1 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,8 @@ class Appendable::Reaction < Appendable
# rubocop:enable Rails/SkipsModelValidations
def notification_type(*_args)
Notification::CommentSmiled if parent.instance_of?(Comment)
return Notification::CommentSmiled if parent.instance_of?(Comment)
Notification::Smiled
end
end