Skip to content

Commit

Permalink
fix: windchill and aqhi showing at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
Forceh91 committed Oct 26, 2023
1 parent 7424ece commit de4775a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/display/components/weather/conditions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function Conditions(props: ConditionsProp) {
const {
temperature: { value: temperatureValue, units: temperatureUnits },
wind: {
speed: { value: windSpeedValue, units: windSpeedUnits },
speed: { value: windSpeedValue },
gust: windGust,
direction: windDirection,
},
Expand Down Expand Up @@ -106,7 +106,7 @@ export function Conditions(props: ConditionsProp) {
<span>{"".padEnd(5)}</span>
<span className="reload-animation step-7">
{windchill > 0 && <span>Wind Chill {windchill}</span>}
{airQuality?.value && <span>Air Quality {airQuality.textValue}</span>}
{!windchill && airQuality?.value && <span>Air Quality {airQuality.textValue}</span>}
</span>
</>
)}
Expand Down

0 comments on commit de4775a

Please sign in to comment.