From 1216af6c06a28bf403314fe291571a62b0d15653 Mon Sep 17 00:00:00 2001 From: Kegan Maher Date: Fri, 29 Mar 2024 22:15:44 +0000 Subject: [PATCH] chore(enrollment): add visible class after removing invisible class 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 --- benefits/enrollment/templates/enrollment/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/benefits/enrollment/templates/enrollment/index.html b/benefits/enrollment/templates/enrollment/index.html index 091d7a0bc..3a0483396 100644 --- a/benefits/enrollment/templates/enrollment/index.html +++ b/benefits/enrollment/templates/enrollment/index.html @@ -42,7 +42,10 @@

.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, {