diff --git a/static/js/registration.js b/static/js/registration.js index c57aa88..d35e724 100644 --- a/static/js/registration.js +++ b/static/js/registration.js @@ -23,8 +23,15 @@ function SendRegistrationForm(el, user_id){ data: formData, success: function(data){ - document.getElementById('confirm_password').innerHTML = data.message - document.querySelector('.info_text').classList.add('show') + const confirmPasswordElement = document.getElementById('confirm_password'); + if (confirmPasswordElement) { + confirmPasswordElement.innerHTML = data.message; + } + + const infoTextElement = document.querySelector('.info_text'); + if (infoTextElement) { + infoTextElement.classList.add('show'); + } // location.href = `/profile/page/dashboard/` window.sessionStorage.removeItem('mailingSubscribeRequired') window.sessionStorage.removeItem('email') diff --git a/templates/blocks/b_footer.html b/templates/blocks/b_footer.html index 125bc8e..f3fd817 100644 --- a/templates/blocks/b_footer.html +++ b/templates/blocks/b_footer.html @@ -17,7 +17,7 @@