diff --git a/scripts/registration.js b/scripts/registration.js index 645560e..3c7545b 100644 --- a/scripts/registration.js +++ b/scripts/registration.js @@ -25,7 +25,7 @@ function storeFormFields() { function restoreFormFieldValue(fieldId) { var fieldElement = document.getElementById(fieldId); - if (fieldElement) { + if (localStorage.getItem(fieldId)) { fieldElement.value = localStorage.getItem(fieldId) || ''; } }