Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
Fix precipitation in forecast
Browse files Browse the repository at this point in the history
  • Loading branch information
Anna Melnikov committed Jan 16, 2022
1 parent f0a6e5e commit 84bff97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/forecast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ export const getForecast = async (latitude: number, longitude: number): Promise<
const { temperature: currentTemp, feelslike: feelsLike, weather_descriptions, precip } = currentWeather;
const weatherDescription = weather_descriptions[0];
const forecast = `${weatherDescription}. It is currently ${currentTemp}. It feels like ${feelsLike}.
Chance of precipitation: ${precip}%`;
Chance of precipitation: ${precip * 100}%`;
return forecast;
}

0 comments on commit 84bff97

Please sign in to comment.