diff --git a/app/views/notifications/_badgeachievement.html.erb b/app/views/notifications/_badgeachievement.html.erb index 5c7ccc080..c82f47b24 100644 --- a/app/views/notifications/_badgeachievement.html.erb +++ b/app/views/notifications/_badgeachievement.html.erb @@ -13,7 +13,8 @@

" class="crayons-btn w-100 m:w-50">Visit your profile

- <% unless json_data["badge_achievement"]["badge"]["credits_awarded"].zero? %> + <% credits_awarded = json_data["badge_achievement"]["badge"]["credits_awarded"] %> + <% unless credits_awarded.present? && credits_awarded.zero? %>

You also get <%= json_data["badge_achievement"]["badge"]["credits_awarded"] %> new credits to use for community listings if you have anything you'd like to promote. 🎉

More information about listings

<% end %>