Skip to content

Commit f23f9ce

Browse files
fix: don't able to call server when promotional code is empty (#3818)
Co-authored-by: Kush Trivedi <[email protected]>
1 parent c683c0c commit f23f9ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,10 @@
125125
placeholder=(t 'Promotional Code')
126126
readonly=promotionalCodeApplied
127127
key-up=(action 'handleKeyPress')
128+
id='promotionalCode'
128129
}}
129130
{{#unless promotionalCodeApplied}}
130-
<div role="button" class="ui icon button" {{action 'applyPromotionalCode'}}>
131+
<div role="button" class="ui icon {{if promotionalCode '' 'disabled'}} button" {{action 'applyPromotionalCode'}}>
131132
<i class="checkmark icon"></i>
132133
</div>
133134
{{/unless}}

0 commit comments

Comments
 (0)