Skip to content

Commit

Permalink
Omit blockquote tag if no comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacall committed Aug 29, 2023
1 parent f8349fb commit b95ce75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/collections_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ def item_order_badge(collection_item)
end

def item_comment(collection_item)
content_tag(:blockquote, collection_item.comment, class: 'collection-item-comment')
content_tag(:blockquote, collection_item.comment, class: 'collection-item-comment') unless collection_item&.comment.blank?
end
end

0 comments on commit b95ce75

Please sign in to comment.