fix weather screens temp symbol not updating

This commit is contained in:
Gerome Matilla 2020-06-09 12:45:43 +08:00
parent 24b7d4ff0f
commit 5fae8e1656

View File

@ -182,8 +182,8 @@ class WeatherScreen {
request.open('GET', requestString, true);
request.onload = e => {
if (request.readyState === 4 && request.status === 200 && request.status < 400) {
this._processWeatherData(JSON.parse(request.response));
this._tempSymbol = (units === 'metric') ? '°C' : '°F';
this._processWeatherData(JSON.parse(request.response));
} else {
this._setErrValue();
};
@ -200,8 +200,8 @@ class WeatherScreen {
request.open('GET', requestString, true);
request.onload = e => {
if (request.readyState === 4 && request.status === 200 && request.status < 400) {
this._processForecastData(JSON.parse(request.response));
this._tempSymbol = (units === 'metric') ? '°C' : '°F';
this._processForecastData(JSON.parse(request.response));
} else {
this._setErrValue();
};