UI improvements

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-06-17 15:54:24 +02:00
parent 7cd45a1351
commit b5f295c5d9
32 changed files with 200 additions and 166 deletions

View File

@@ -484,6 +484,9 @@ defmodule Mobilizon.GraphQL.Resolvers.User do
with true <- current_locale != locale,
{:ok, %User{} = updated_user} <- Users.update_user(user, %{locale: locale}) do
{:ok, updated_user}
else
false ->
{:ok, user}
end
end
end