Skip to content

Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.

Fix: Currency not preselected on registration

Miguel Ribeirofc56cf69ef22
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) || '';
}
}