diff --git a/crates/app/src/public/html/components.html b/crates/app/src/public/html/components.html
index 51941b2..3dd6095 100644
--- a/crates/app/src/public/html/components.html
+++ b/crates/app/src/public/html/components.html
@@ -447,7 +447,7 @@ config.town_square and user %}
});
}
-{% endif %} {%- endmacro %} {% macro theme(user) -%} {% if
+{% endif %} {%- endmacro %} {% macro theme(user) -%} {% if user %} {% if
user.settings.theme_hue %}
+{% if user.settings.theme_preference %}
-{% endif %} {%- endmacro %}
+{% endif %} {% endif %} {% endif %} {%- endmacro %}