fix nil weather units
This commit is contained in:
parent
4f02966aab
commit
32838712c6
1 changed files with 3 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue