mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
Fix: check if temperature is defined (0°)
This commit is contained in:
parent
8010e6220d
commit
93c07b2b1e
@ -296,7 +296,7 @@ Module.register("currentweather",{
|
||||
*/
|
||||
processWeather: function(data) {
|
||||
|
||||
if (!data || !data.main || !data.main.temp) {
|
||||
if (!data || !data.main || typeof data.main.temp === 'undefined') {
|
||||
// Did not receive usable new data.
|
||||
// Maybe this needs a better check?
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user