We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d70124 commit b80c530Copy full SHA for b80c530
src/app/weather/weather.component.ts
@@ -188,8 +188,8 @@ export class WeatherComponent implements OnInit {
188
if (city.combinedName === event.option.value) {
189
const latitude = parseFloat(city.latitude);
190
const longitude = parseFloat(city.longitude);
191
- this.locationData.latitude = latitude.toFixed(4).toString();
192
- this.locationData.longitude = longitude.toFixed(4).toString();
+ this.locationData.latitude = latitude.toFixed(4);
+ this.locationData.longitude = longitude.toFixed(4);
193
this.store.dispatch(new LoadWeather({weatherData: null}));
194
this.store.dispatch(new LoadLocations({locationData: this.locationData}));
195
break;
0 commit comments