Skip to content

Commit

Permalink
Fixes #45
Browse files Browse the repository at this point in the history
  • Loading branch information
lentschi committed Feb 5, 2024
1 parent da4e186 commit 9b66b28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/helpers/orders_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def pkg_helper(article, options = {})

uq_text = #{first_ratio.quantity} #{ArticleUnitsLib.units[first_ratio.unit][:symbol]}"
else
uq_text = ArticleUnitsLib.units[options[:unit]][:symbol]
unit = ArticleUnitsLib.units[options[:unit]]
uq_text = unit[:symbol] || unit[:name]
end
uq_text = content_tag(:span, uq_text, class: 'hidden-phone') if options[:soft_uq]
if options[:plain]
Expand Down

0 comments on commit 9b66b28

Please sign in to comment.