Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinchauhan2889 committed Nov 1, 2020
1 parent bb2ee2e commit 18a1215
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/templates/components/orders/order-summary.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@
<td>
<Orders::TicketPrice
@ticket={{ticket}}
@currency={{this.eventCurrency}} />
@currency={{this.eventCurrency}}
@amount={{ticket.price}} />
</td>
{{#if this.data.discountCode}}
<td>{{currency-symbol this.eventCurrency}} {{format-money ticket.discount}}</td>
Expand Down
2 changes: 1 addition & 1 deletion app/templates/components/orders/ticket-price.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{#if (eq @ticket.type 'free')}}
{{t "Free"}}
{{else}}
{{currency-symbol @currency}} {{format-money (or @amount @ticket.price)}}
{{currency-symbol @currency}} {{format-money @amount}}
{{/if}}
3 changes: 2 additions & 1 deletion app/templates/components/public/ticket-list.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
<div class="{{if ticket.discount 'strike text'}}">
<Orders::TicketPrice
@ticket={{ticket}}
@currency={{this.eventCurrency}} />
@currency={{this.eventCurrency}}
@amount={{ticket.price}} />
</div>
{{#if ticket.discount}}
<div>
Expand Down

0 comments on commit 18a1215

Please sign in to comment.