Skip to content

Commit

Permalink
Update weather.js
Browse files Browse the repository at this point in the history
Fix for issue MagicMirrorOrg#3345
  • Loading branch information
vppencilsharpener authored Jan 11, 2024
1 parent 118e212 commit 9348ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/default/weather/weather.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ Module.register("weather", {
}
}
} else if (type === "precip") {
if (value === null || isNaN(value) || value === 0 || value.toFixed(2) === "0.00") {
if (value === null || isNaN(value)) {
formattedValue = "";
} else {
formattedValue = WeatherUtils.convertPrecipitationUnit(value, valueUnit, this.config.units);
Expand Down

0 comments on commit 9348ae9

Please sign in to comment.