Skip to content

Commit

Permalink
Fix2: tomorrow min temp change
Browse files Browse the repository at this point in the history
  • Loading branch information
aperkins81 committed Oct 21, 2024
1 parent a4ea200 commit 05ed28d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8333,7 +8333,7 @@ function InjectValues(text, weather, config, inCommand = false) {
const tempMinTomorrow = tmr ? (_r = TempToUserConfig(tmr.temp_min, config, false)) !== null && _r !== void 0 ? _r : "" : "";
const tempMaxTomorrow = tmr ? (_s = TempToUserConfig(tmr.temp_max, config, false)) !== null && _s !== void 0 ? _s : "" : "";
const tempsTomorrow = tmr ? TempRangeToUserConfig(tmr.temp_min, tmr.temp_max, config) : "";
const tmrMinTempChange = tempMinTomorrow && tempMax ? (_t = SignedNumber(Number(tempMaxTomorrow) - Number(tempMax))) !== null && _t !== void 0 ? _t : "" : "";
const tmrMinTempChange = tempMinTomorrow && tempMax ? (_t = SignedNumber(Number(tempMinTomorrow) - Number(tempMin))) !== null && _t !== void 0 ? _t : "" : "";
const tmrMaxTempChange = tempMaxTomorrow && temp ? (_u = SignedNumber(Number(tempMaxTomorrow) - Number(tempMax))) !== null && _u !== void 0 ? _u : "" : "";
const tempsTomorrowWithDifferences = tmr ? `${tempsTomorrow} (${tmrMinTempChange} / ${tmrMaxTempChange})` : "";
const sunriseTime = sunrise ? (_v = GetHoursMinutes(sunrise, _show24Hours)) !== null && _v !== void 0 ? _v : "" : "";
Expand Down
2 changes: 1 addition & 1 deletion weather@mockturtl/src/3_8/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(tempMax)) ?? "" : "";
const tmrMinTempChange = tempMinTomorrow && tempMax ? SignedNumber(Number(tempMinTomorrow) - Number(tempMin)) ?? "" : "";
const tmrMaxTempChange = tempMaxTomorrow && temp ? SignedNumber(Number(tempMaxTomorrow) - Number(tempMax)) ?? "" : "";
const tempsTomorrowWithDifferences = tmr ? `${tempsTomorrow} (${tmrMinTempChange} / ${tmrMaxTempChange})` : "";

Expand Down

0 comments on commit 05ed28d

Please sign in to comment.