fix nil weather units

This commit is contained in:
Graham McIntire 2025-07-08 12:45:50 -05:00
parent 4f02966aab
commit 32838712c6
No known key found for this signature in database

View file

@ -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.