Skip to content

Commit 44da679

Browse files
committed
Prevent zero donations
1 parent 87e5fbb commit 44da679

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/templates/components/public/ticket-list.hbs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@
4747
</td>
4848
{{else}}
4949
<td id="{{ticket.id}}_price">
50-
{{#if (eq ticket.type 'donation') }}
51-
{{input type='number' value=ticket.price min=1}}
52-
{{else}}
53-
{{currency-symbol eventCurrency}} {{format-number ticket.price}}
54-
{{/if}}
50+
{{#if (eq ticket.type 'donation') }}
51+
{{input type='number' name='price' placeholder=(t 'Enter Donation') value=ticket.price min=1 max=ticket.maxPrice}}
52+
{{else}}
53+
{{currency-symbol eventCurrency}} {{format-number ticket.price}}
54+
{{/if}}
5555
{{#if (and taxInfo (not-eq ticket.type 'free'))}}
5656
{{#if showTaxIncludedMessage}}
5757
<small class="ui gray-text small">

0 commit comments

Comments
 (0)