Skip to content

Commit

Permalink
refactor(enrollment): rename finished card tokenization event
Browse files Browse the repository at this point in the history
aligns with other start/finish events like for sign in
  • Loading branch information
thekaveman committed Oct 10, 2024
1 parent b7dbf62 commit 3161acd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benefits/enrollment/templates/enrollment/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1 class="pb-lg-8 pb-4">
{% endcomment %}
{% translate "Please wait..." as loading_text %}
<script nonce="{{ request.csp_nonce }}">
var startedEvent = "started card tokenization", closedEvent = "ended card tokenization";
var startedEvent = "started card tokenization", closedEvent = "finished card tokenization";

$.ajax({ dataType: "script", attrs: { nonce: "{{ request.csp_nonce }}"}, url: "{{ card_tokenize_url }}" })
.done(function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ <h2 class="p-0 m-0 text-left">In-person enrollment</h2>
</div>

<script nonce="{{ request.csp_nonce }}">
var startedEvent = "started card tokenization", closedEvent = "ended card tokenization";
var startedEvent = "started card tokenization", closedEvent = "finished card tokenization";

$.ajax({ dataType: "script", attrs: { nonce: "{{ request.csp_nonce }}"}, url: "{{ card_tokenize_url }}" })
.done(function() {
Expand Down

0 comments on commit 3161acd

Please sign in to comment.