Skip to content

Commit

Permalink
[B] Current weather is object not array
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Mason authored and blnkt committed Apr 10, 2024
1 parent 64a9d35 commit 648eb91
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const ForecastAstroweather = () => {
const moonriseId = "moonriseTitle";
const now = new Date();

const { dewPoint } = current?.[0];
const { dewPoint } = current;
const dewpoint = convertTemperature(dewPoint, tempUnit);

return (
Expand Down
2 changes: 1 addition & 1 deletion components/dynamic/SummitData/Observation/Related/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Related = () => {
);

const { lunarPhase } = astroweatherData;
const { dewPoint } = current?.[0];
const { dewPoint } = current;
const dewpoint = convertTemperature(dewPoint, tempUnit);

return (
Expand Down
2 changes: 1 addition & 1 deletion components/dynamic/SummitData/Observation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const Observation = () => {
</WidgetPreview>
);

const { azimuth, zenith } = current?.[0];
const { azimuth, zenith } = current;

return (
<WidgetPreview
Expand Down
2 changes: 1 addition & 1 deletion components/dynamic/SummitData/Weather/Current/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const CurrentWeather = () => {
</WidgetSection>
);

const { temperature0, windspeed, dewPoint } = current?.[0];
const { temperature0, windspeed, dewPoint } = current;
const temperature = convertTemperature(temperature0, tempUnit);
const dewpoint = convertTemperature(dewPoint, tempUnit);

Expand Down
2 changes: 1 addition & 1 deletion components/dynamic/SummitData/Weather/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Weather = () => {
</WidgetPreview>
);

const { temperature0, dewPoint } = current?.[0];
const { temperature0, dewPoint } = current;

return (
<WidgetPreview
Expand Down

0 comments on commit 648eb91

Please sign in to comment.