diff --git a/lib/aprsme_web/weather_units.ex b/lib/aprsme_web/weather_units.ex index 86173cd..fb392ec 100644 --- a/lib/aprsme_web/weather_units.ex +++ b/lib/aprsme_web/weather_units.ex @@ -25,6 +25,9 @@ defmodule AprsmeWeb.WeatherUnits do end end + def unit_system(nil), do: :imperial + def unit_system(_), do: :imperial + @doc """ Converts temperature from Fahrenheit to Celsius if needed. Returns the temperature in the appropriate unit for the locale.