Skip to content

Commit

Permalink
fix: don't able to call server when promotional code is empty (#3818)
Browse files Browse the repository at this point in the history
Co-authored-by: Kush Trivedi <kushthedude@gmail.com>
  • Loading branch information
maze-runnar and kushthedude committed Jan 22, 2020
1 parent c683c0c commit f23f9ce
Showing 1 changed file with 2 additions and 1 deletion.
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 @@ -125,9 +125,10 @@
placeholder=(t 'Promotional Code')
readonly=promotionalCodeApplied
key-up=(action 'handleKeyPress')
id='promotionalCode'
}}
{{#unless promotionalCodeApplied}}
<div role="button" class="ui icon button" {{action 'applyPromotionalCode'}}>
<div role="button" class="ui icon {{if promotionalCode '' 'disabled'}} button" {{action 'applyPromotionalCode'}}>
<i class="checkmark icon"></i>
</div>
{{/unless}}
Expand Down

0 comments on commit f23f9ce

Please sign in to comment.