Skip to content

Commit

Permalink
Update HomeScreen.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
swaaz authored Jun 26, 2021
1 parent dee808d commit 61a07bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion screens/HomeScreen.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const HomeScreen = ({navigation}) => {
speed : 0.0
});
if(!weather.loaded){
fetch(`https://api.openweathermap.org/data/2.5/weather?lat=${getCurrentLocation.latitude}&lon=${getCurrentLocation.longitude}&units=metric&appid=47902e57d5566b7125fe399170fc2c60`)
fetch(`https://api.openweathermap.org/data/2.5/weather?lat=${getCurrentLocation.latitude}&lon=${getCurrentLocation.longitude}&units=metric&appid=`)
.then((response) => response.json())
.then((json) => setWeather({ temperature : json.main.temp, loaded : true}))
.catch((error) => console.error(error))
Expand Down

0 comments on commit 61a07bb

Please sign in to comment.