Skip to content

Commit

Permalink
Update application_helper.rb: typo amout > amount
Browse files Browse the repository at this point in the history
  • Loading branch information
mjavurek authored Nov 21, 2024
1 parent 9040f72 commit 165dab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ def format_datetime_timespec(time, format)
def format_currency(amount)
return nil if amount.nil?

class_name = amount < 0 ? 'negative_amout' : 'positive_amount'
class_name = amount < 0 ? 'negative_amount' : 'positive_amount'
content_tag :span, number_to_currency(amount), class: class_name
end

def format_currency_difference(amount)
class_name = amount < 0 ? 'negative_amout' : 'positive_green'
class_name = amount < 0 ? 'negative_amount' : 'positive_green'

Check failure on line 30 in app/helpers/application_helper.rb

View workflow job for this annotation

GitHub Actions / test

Layout/TrailingWhitespace: Trailing whitespace detected.
content_tag :span, (amount > 0 ? '+' : '') + number_to_currency(amount), class: class_name
end

Expand Down

0 comments on commit 165dab6

Please sign in to comment.