mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-30 13:09:34 +00:00
do not show 0 mm rain value
This commit is contained in:
parent
40a65eec51
commit
409939360f
@ -198,7 +198,7 @@ Module.register("weather",{
|
||||
}
|
||||
}
|
||||
} else if (type === "rain") {
|
||||
if (isNaN(value)) {
|
||||
if (isNaN(value) || value === 0) {
|
||||
value = "";
|
||||
} else {
|
||||
value = `${value.toFixed(2)} ${this.config.units === "imperial" ? "in" : "mm"}`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user