Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit a929e37

Browse files
committed
Merge pull request #1589 from OpenBazaar/pr/1588
Pr/1588
2 parents 5e2d8e9 + 2ae8f03 commit a929e37

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

js/templates/buyWizard.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ <h2 class="margin0 marginTop80"><%= polyglot.t('buyFlow.HaveWallet') %></h2>
288288
</div>
289289
<% _.each(ob.vendor_offer.listing.moderators, function(moderator, i) { %>
290290
<% if(moderator.guid != ob.user.guid){ %>
291+
<% moderator.numFee = moderator.fee.replace(/[^\d.-]/g, ''); %>
291292
<div class="flexRow">
292293
<div class="">
293294
<label for="buyWizardModeratorRadio<%= i %>" class="textOpacity1 clickable">
@@ -312,7 +313,7 @@ <h2 class="margin0 marginTop80"><%= polyglot.t('buyFlow.HaveWallet') %></h2>
312313
<% if(moderator.handle){ %><%= moderator.handle %><% } else { %><%= moderator.guid %><% } %>
313314
</div>
314315
</div>
315-
<div class="floatRight textOpacity75"><%= moderator.fee %></div>
316+
<div class="floatRight textOpacity75"><%= ob.intlNumFormat(moderator.numFee) %></div>
316317
</div>
317318
</div>
318319
</div>

js/templates/transactionModal.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -817,18 +817,18 @@ <h3 class="txt-bright"><%= polyglot.t('CheckExchanges') %> </h3>
817817
<% if( ob.displayModerator) { %>
818818
<%= polyglot.t('transactions.ModeratedTransaction') %>
819819
<% if(ob.displayTotalPrice){ %>
820-
<strong><span class="noWrap"><%= ob.buyer_order.order.payment.amount %> BTC</span> (<%= ob.displayTotalPrice %>)</strong>
820+
<strong><span class="noWrap"><%= ob.intlNumFormat(ob.buyer_order.order.payment.amount, 8) %> BTC</span> (<%= ob.displayTotalPrice %>)</strong>
821821
<% } else if(ob.buyer_order.order.payment.amount){ %>
822-
<strong><%= ob.buyer_order.order.payment.amount %> BTC</strong>
822+
<strong><%= ob.intlNumFormat(ob.buyer_order.order.payment.amount, 8) %> BTC</strong>
823823
<% } else { %>
824824
<strong><%= polyglot.t('Free') %></strong>
825825
<% } %>
826826
<% } else { %>
827827
<%= polyglot.t('transactions.DirectTransaction') %>
828828
<% if(ob.displayTotalPrice){ %>
829-
<strong><span class="noWrap"><%= ob.buyer_order.order.payment.amount %> BTC</span> (<%= ob.displayTotalPrice %>)</strong>
829+
<strong><span class="noWrap"><%= ob.intlNumFormat(ob.buyer_order.order.payment.amount, 8) %> BTC</span> (<%= ob.displayTotalPrice %>)</strong>
830830
<% } else if(ob.buyer_order.order.payment.amount){ %>
831-
<strong><%= ob.buyer_order.order.payment.amount %> BTC</strong>
831+
<strong><%= ob.intlNumFormat(ob.buyer_order.order.payment.amount, 8) %> BTC</strong>
832832
<% } else { %>
833833
<strong><%= polyglot.t('Free') %></strong>
834834
<% } %>
@@ -885,9 +885,9 @@ <h3 class="txt-bright"><%= polyglot.t('CheckExchanges') %> </h3>
885885
</div>
886886
<div class="fontSize13 noOverflow textOpacity75">
887887
<% if(ob.displayTotalPrice){ %>
888-
<strong>+<span class="noWrap"><%= ob.buyer_order.order.payment.amount %> BTC</span> (<%= ob.displayTotalPrice %>)</strong>
888+
<strong>+<span class="noWrap"><%= ob.intlNumFormat(ob.buyer_order.order.payment.amount, 8) %> BTC</span> (<%= ob.displayTotalPrice %>)</strong>
889889
<% } else if(ob.buyer_order.order.payment.amount){ %>
890-
<strong>+<%= ob.buyer_order.order.payment.amount %> BTC</strong>
890+
<strong>+<%= ob.intlNumFormat(ob.buyer_order.order.payment.amount, 8) %> BTC</strong>
891891
<% } else { %>
892892
<strong><%= polyglot.t('Free') %></strong>
893893
<% } %>
@@ -919,9 +919,9 @@ <h3 class="txt-bright"><%= polyglot.t('CheckExchanges') %> </h3>
919919
</div>
920920
<div class="fontSize13 noOverflow textOpacity75">
921921
<% if(ob.displayTotalPrice){ %>
922-
<strong>-<span class="noWrap"><%= ob.buyer_order.order.payment.amount %> BTC</span> (<%= ob.displayTotalPrice %>)</strong>
922+
<strong>-<span class="noWrap"><%= ob.intlNumFormat(ob.buyer_order.order.payment.amount, 8) %> BTC</span> (<%= ob.displayTotalPrice %>)</strong>
923923
<% } else if(ob.buyer_order.order.payment.amount){ %>
924-
<strong>-<%= ob.buyer_order.order.payment.amount %> BTC</strong>
924+
<strong>-<%= ob.intlNumFormat(ob.buyer_order.order.payment.amount, 8) %> BTC</strong>
925925
<% } else { %>
926926
<strong><%= polyglot.t('Free') %></strong>
927927
<% } %>

0 commit comments

Comments
 (0)