From dde6f8cc02264bd009b8e1ec8da8b8531cee76bb Mon Sep 17 00:00:00 2001 From: Ahmad Farhat Date: Thu, 12 Oct 2023 10:28:33 -0400 Subject: [PATCH] Fix bug with default locale (#5462) --- app/controllers/api/v1/sessions_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/sessions_controller.rb b/app/controllers/api/v1/sessions_controller.rb index 8c62c23209..d764ad97f0 100644 --- a/app/controllers/api/v1/sessions_controller.rb +++ b/app/controllers/api/v1/sessions_controller.rb @@ -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