Skip to content

Commit b80c530

Browse files
removed toString where it was unnecessary in weather component
1 parent 9d70124 commit b80c530

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/weather/weather.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ export class WeatherComponent implements OnInit {
188188
if (city.combinedName === event.option.value) {
189189
const latitude = parseFloat(city.latitude);
190190
const longitude = parseFloat(city.longitude);
191-
this.locationData.latitude = latitude.toFixed(4).toString();
192-
this.locationData.longitude = longitude.toFixed(4).toString();
191+
this.locationData.latitude = latitude.toFixed(4);
192+
this.locationData.longitude = longitude.toFixed(4);
193193
this.store.dispatch(new LoadWeather({weatherData: null}));
194194
this.store.dispatch(new LoadLocations({locationData: this.locationData}));
195195
break;

0 commit comments

Comments
 (0)