mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
do not show 0 mm rain value
This commit is contained in:
@@ -198,7 +198,7 @@ Module.register("weather",{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (type === "rain") {
|
} else if (type === "rain") {
|
||||||
if (isNaN(value)) {
|
if (isNaN(value) || value === 0) {
|
||||||
value = "";
|
value = "";
|
||||||
} else {
|
} else {
|
||||||
value = `${value.toFixed(2)} ${this.config.units === "imperial" ? "in" : "mm"}`;
|
value = `${value.toFixed(2)} ${this.config.units === "imperial" ? "in" : "mm"}`;
|
||||||
|
Reference in New Issue
Block a user