diff --git a/modules/default/weather/hourly.njk b/modules/default/weather/hourly.njk index 38832bdb..90d0d161 100644 --- a/modules/default/weather/hourly.njk +++ b/modules/default/weather/hourly.njk @@ -11,13 +11,15 @@ {{ hour.temperature | roundValue | unit("temperature") }} {% if config.showPrecipitationAmount %} - - {{ hour.precipitation }}{{ hour.precipitationUnits }} - - {% else %} - - {{ hour.precipitation | unit("precip") }} - + {% if hour.precipitationUnits %} + + {{ hour.precipitation }}{{ hour.precipitationUnits }} + + {% else %} + + {{ hour.precipitation | unit("precip") }} + + {% endif %} {% endif %} {% set currentStep = currentStep + 1 %}