Skip to content

Commit

Permalink
Fix bug with default locale (#5462)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad authored Oct 12, 2023
1 parent 13e84db commit dde6f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/api/v1/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class SessionsController < ApiController
def index
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

# POST /api/v1/sessions
Expand Down

0 comments on commit dde6f8c

Please sign in to comment.