From c11774a7d8b455f24f10b83259f78e7a2ec5a389 Mon Sep 17 00:00:00 2001 From: fraxle Date: Mon, 18 May 2026 15:58:21 +0100 Subject: [PATCH] 1.5.1 Profile button fixes --- assets/js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/app.js b/assets/js/app.js index 31db63e..582f515 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -151,7 +151,7 @@ export function UTCIForecast() { // Which columns appear in the hourly table by default. // true = visible on first load (and the only ones free users see) // false = hidden by default (Pro users can toggle these on) - const [visibleCols, setVisibleCols] = useState({ ...FILTER_PROFILES.basic.cols, vis: false, aqi: false, pollen: false }); + const [visibleCols, setVisibleCols] = useState({ ...FILTER_PROFILES.basic.cols }); const toggleCol = (col) => setVisibleCols(prev => ({ ...prev, [col]: !prev[col] })); // Skin type for the sunburn-time column. Fitzpatrick II is typical UK fair. @@ -995,7 +995,7 @@ ${isPro && (activeProfile === 'custom' || activeCols['air']) && html``} ${isPro && (activeProfile === 'custom' || activeCols['vis']) && html``} ${isPro && (activeProfile === 'custom' || activeCols['aqi']) && html``} - ${(isPro || activeCols['pollen']) && html`<${CustomSelect} + ${(isPro ? (activeProfile === 'custom' || activeCols['pollen']) : activeCols['pollen']) && html`<${CustomSelect} value=${pollenType} isOn=${visibleCols.pollen} hideLabel="Pollen"