REFACTOR: use const rather than var

REFACTOR: use const rather than var

diff --git a/app/assets/javascripts/admin-login/admin-login.js.es6 b/app/assets/javascripts/admin-login/admin-login.js.es6
index 9481f73..e7404b3 100644
--- a/app/assets/javascripts/admin-login/admin-login.js.es6
+++ b/app/assets/javascripts/admin-login/admin-login.js.es6
@@ -27,10 +27,10 @@ export default function() {
     );
   };
 
-  var useTotp = I18n.t("login.second_factor_toggle.totp");
-  var useBackup = I18n.t("login.second_factor_toggle.backup_code");
-  var backupForm = document.getElementById("backup-second-factor-form");
-  var primaryForm = document.getElementById("primary-second-factor-form");
+  const useTotp = I18n.t("login.second_factor_toggle.totp");
+  const useBackup = I18n.t("login.second_factor_toggle.backup_code");
+  const backupForm = document.getElementById("backup-second-factor-form");
+  const primaryForm = document.getElementById("primary-second-factor-form");
   document.getElementById("toggle-form").onclick = function(event) {
     event.preventDefault();
     if (backupForm.style.display === "none") {

GitHub sha: d6b39dc0

Follow up of FEATURE: Webauthn authenticator management with 2FA login (Security Keys) (#8099)

Thanks Jeff, still in that bad var habit sometimes :sweat: