Skip to content

Commit

Permalink
Fix changing the address language
Browse files Browse the repository at this point in the history
Addresses #1413
  • Loading branch information
adriankumpf committed Mar 10, 2021
1 parent 9a4bf80 commit c77e65d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/teslamate/locations/geocoder.ex
Expand Up @@ -40,7 +40,13 @@ defmodule TeslaMate.Locations.Geocoder do
namedetails: 1,
zoom: 19
) do
{:ok, Enum.map(raw_addresses, &into_address/1)}
addresses =
Enum.map(raw_addresses, fn attrs ->
{:ok, address} = into_address(attrs)
address
end)

{:ok, addresses}
end
end

Expand Down

0 comments on commit c77e65d

Please sign in to comment.