diff --git a/web/src/app.html b/web/src/app.html
index 778375c1e1..ff6a8bf580 100644
--- a/web/src/app.html
+++ b/web/src/app.html
@@ -74,7 +74,7 @@
if (!theme) {
theme = { value: 'light', system: true };
} else if (theme === 'dark' || theme === 'light') {
- theme = { value: item, system: false };
+ theme = { value: theme, system: false };
localStorage.setItem(colorThemeKeyName, JSON.stringify(theme));
} else {
theme = JSON.parse(theme);