diff --git a/dist/index.html b/dist/index.html index ef95e00..d3127b4 100644 --- a/dist/index.html +++ b/dist/index.html @@ -6220,7 +6220,7 @@ var NotificationStore = class { } newAlerts = newAlerts.filter((a) => !this.dismissedIds.has(a.id)); this.alerts = newAlerts; - for (const a of this.alerts) { + for (const a of newAlerts) { if (this._notifiedIds.has(a.id)) continue; this._notifiedIds.add(a.id); notify({ @@ -6831,10 +6831,10 @@ function DailyForecast($$anchor, $$props) { var fragment_1 = comment(); var node_1 = first_child(fragment_1); var consequent_2 = ($$anchor) => { - const info = /* @__PURE__ */ user_derived(() => getWeatherInfo(get(daily).weather_code[i], precip)); + const precip = /* @__PURE__ */ user_derived(() => get(daily).precipitation_probability_max?.[i] || 0); + const info = /* @__PURE__ */ user_derived(() => getWeatherInfo(get(daily).weather_code[i], get(precip))); const tempMax = /* @__PURE__ */ user_derived(() => Math.round(get(daily).temperature_2m_max[i])); const tempMin = /* @__PURE__ */ user_derived(() => Math.round(get(daily).temperature_2m_min[i])); - const precip = /* @__PURE__ */ user_derived(() => get(daily).precipitation_probability_max?.[i] || 0); const wind = /* @__PURE__ */ user_derived(() => get(daily).wind_speed_10m_max?.[i]); var div_2 = root_2$6(); set_class(div_2, 1, "day-card card-glass svelte-ss3yj8", null, {}, { today: i === 0 }); @@ -8792,7 +8792,7 @@ delegate([ ]); //#endregion //#region src/main.js -console.info({ commit_hash: "2c678fd00db6e0244334a9b6de10a6d379c9126c" }); +console.info({ commit_hash: "897f49ae2209cb2213ea97a4a082bb4bdfa2889a" }); registerServiceWorker(); mount(App, { target: document.getElementById("app") }); //#endregion diff --git a/src/components/DailyForecast.svelte b/src/components/DailyForecast.svelte index 3fe8ae2..0dc1467 100644 --- a/src/components/DailyForecast.svelte +++ b/src/components/DailyForecast.svelte @@ -29,10 +29,10 @@