Skip to content
Snippets Groups Projects
Unverified Commit dde6f8cc authored by Ahmad Farhat's avatar Ahmad Farhat Committed by GitHub
Browse files

Fix bug with default locale (#5462)

parent 13e84db7
Branches
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ module Api ...@@ -26,7 +26,7 @@ module Api
def index def index
return render_data data: current_user, serializer: CurrentUserSerializer, status: :ok if current_user return render_data data: current_user, serializer: CurrentUserSerializer, status: :ok if current_user
render_data data: { signed_in: false, default_locale: ENV.fetch('DEFAULT_LOCALE') }, status: :ok render_data data: { signed_in: false, default_locale: ENV.fetch('DEFAULT_LOCALE', nil) }, status: :ok
end end
# POST /api/v1/sessions # POST /api/v1/sessions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment