Skip to content

Commit

Permalink
Fix: min temp tomorrow change
Browse files Browse the repository at this point in the history
  • Loading branch information
aperkins81 committed Oct 21, 2024
1 parent 1474164 commit 562ffd1
Showing 1 changed file with 1 addition and 1 deletion.
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(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})` : "";

Expand Down

0 comments on commit 562ffd1

Please sign in to comment.