Skip to content

Commit

Permalink
added comma format to the change offer component
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegPhenomenon committed Jul 2, 2024
1 parent f0113d7 commit dc60c0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/components/modals/change_offer/component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
<div class="c-modal__grid">
<div class="c-modal__main__info">
<span><%= t('english_offers.show.min_bid') %></span>
<h3 class="u-h2 u-m-none"><span id="mini"><%= Money.from_amount(@auction.min_bids_step.to_f, Setting.find_by(code: 'auction_currency').retrieve, precision: 2) %></span></h3>
<h3 class="u-h2 u-m-none">
<span id="mini">
<%= number_with_precision(Money.from_amount(@auction.min_bids_step.to_f, Setting.find_by(code: 'auction_currency').retrieve), precision: 2, separator: '.') %>
</span>
</h3>
</div>
<div class="c-modal__main__info c-modal__main__info--black">
<strong><%= t('english_offers.show.current_price') %></strong>
Expand Down
2 changes: 1 addition & 1 deletion app/components/modals/change_offer_po/component.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div class="c-modal__grid">
<div class="c-modal__main__info">
<span><%= t('english_offers.show.min_bid') %></span>
<h3 class="u-h2 u-m-none"><%= Money.new(Setting.find_by(code: 'auction_minimum_offer').retrieve) %></h3>
<h3 class="u-h2 u-m-none"><%= number_with_precision(Money.new(Setting.find_by(code: 'auction_minimum_offer').retrieve), precision: 2, separator: '.') %></h3>
</div>
<div class="c-modal__main__info c-modal__main__info--black">
<strong><%= t('auctions.you') %></strong>
Expand Down

0 comments on commit dc60c0a

Please sign in to comment.