Skip to content

Commit

Permalink
fix(invoice-template): Fix grouped_by_display helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
ivannovosad committed Oct 2, 2024
1 parent 2f3dd9c commit d72c324
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/views/helpers/fee_display_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

class FeeDisplayHelper
def self.grouped_by_display(fee)
return '' unless fee.charge?
return '' if fee.charge.properties['grouped_by'].blank?
return '' if fee.grouped_by.values.compact.blank?
return '' if !fee.charge? || fee.grouped_by.values.compact.blank?

" • #{fee.grouped_by.values.compact.join(" • ")}"
end
Expand Down

0 comments on commit d72c324

Please sign in to comment.