From 562ffd1f9903d0d7429a48574e56c58f04c71f89 Mon Sep 17 00:00:00 2001 From: Andrew Perkins Date: Tue, 22 Oct 2024 09:21:34 +1000 Subject: [PATCH] Fix: min temp tomorrow change --- weather@mockturtl/src/3_8/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weather@mockturtl/src/3_8/utils.ts b/weather@mockturtl/src/3_8/utils.ts index bcc8ed7caee..e94fca74ef4 100644 --- a/weather@mockturtl/src/3_8/utils.ts +++ b/weather@mockturtl/src/3_8/utils.ts @@ -105,7 +105,7 @@ export function InjectValues(text: string, weather: WeatherData, config: Config, const tempMinTomorrow = tmr ? TempToUserConfig(tmr.temp_min, config, false) ?? "" : ""; const tempMaxTomorrow = tmr ? TempToUserConfig(tmr.temp_max, config, false) ?? "" : ""; const tempsTomorrow = tmr ? TempRangeToUserConfig(tmr.temp_min, tmr.temp_max, config) : ""; - const tmrMinTempChange = tempMinTomorrow && tempMax ? SignedNumber(Number(tempMinTomorrow) - Number(tempMin)) ?? "" : ""; + const tmrMinTempChange = tempMinTomorrow && tempMin ? SignedNumber(Number(tempMinTomorrow) - Number(tempMin)) ?? "" : ""; const tmrMaxTempChange = tempMaxTomorrow && temp ? SignedNumber(Number(tempMaxTomorrow) - Number(tempMax)) ?? "" : ""; const tempsTomorrowWithDifferences = tmr ? `${tempsTomorrow} (${tmrMinTempChange} / ${tmrMaxTempChange})` : "";