diff --git a/app/helpers/user_notifications_helper.rb b/app/helpers/user_notifications_helper.rb index 99807e2db4f..1b3dccf0491 100644 --- a/app/helpers/user_notifications_helper.rb +++ b/app/helpers/user_notifications_helper.rb @@ -68,10 +68,17 @@ module UserNotificationsHelper return "" if category.uncategorized? && !opts[:show_uncategorized] result = "" - if category.parent_category.present? - result << " " + + if opts[:only_stripe] + result << " " + result << "#{category.name}" + else + if category.parent_category.present? + result << " " + end + result << "#{category.name}" end - result << "#{category.name}" + result.html_safe end end diff --git a/app/views/user_notifications/digest.html.erb b/app/views/user_notifications/digest.html.erb index 38144435765..980806f1708 100644 --- a/app/views/user_notifications/digest.html.erb +++ b/app/views/user_notifications/digest.html.erb @@ -44,7 +44,7 @@