diff --git a/src/components/Header.js b/src/components/Header.js index 4e20f0c..8623941 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -29,6 +29,7 @@ class HeaderContainer extends Component { }); getWeather(latitude, longitude).then((weather) => { + weather = Math.round(weather); this.setState({currentWeather: weather}) }).catch(function(err){ console.log('Error retrieving the current weather: ', err); @@ -102,4 +103,6 @@ export default GoogleApiWrapper({ apiKey: (process.env.REACT_APP_GKEY), libraries: ['places'], version: '3' -})(HeaderContainer) \ No newline at end of file + +})(HeaderContainer) +