From fc56cf69ef22a07978022265b2e8344dc293eb14 Mon Sep 17 00:00:00 2001 From: Miguel Ribeiro Date: Mon, 12 Feb 2024 18:34:24 +0100 Subject: [PATCH] Fix: Currency not preselected on registration --- scripts/registration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/registration.js b/scripts/registration.js index 645560e86..3c7545bad 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) || ''; } }