Skip to content

Commit

Permalink
chore(enrollment): add visible class after removing invisible class
Browse files Browse the repository at this point in the history
this is just for clarity to make reading the HTML a little more sensible
rather than seeing a div with an empty class attribute

no UX impact
  • Loading branch information
thekaveman committed Mar 29, 2024
1 parent 9b6aa0b commit 1216af6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion benefits/enrollment/templates/enrollment/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ <h1 class="pb-lg-8 pb-4">
.done(function() {
$.get("{{ access_token_url }}", function(data) {
$(".loading").remove();
$(".invisible").removeClass("invisible");
// remove invisible and add back visible, so we aren't left with
// a div with an empty class attribute
// (this is purely for clarity when reviewing the HTML, no UX impact)
$(".invisible").removeClass("invisible").addClass("visible");

$("#{{ cta_button }}").on("click", function() {
amplitude.getInstance().logEvent(startedEvent, {
Expand Down

0 comments on commit 1216af6

Please sign in to comment.