diff options
-rw-r--r-- | app/controllers/profiles_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/profiles_controller.rb b/app/controllers/profiles_controller.rb index 499a5fc8a18..1eb86222779 100644 --- a/app/controllers/profiles_controller.rb +++ b/app/controllers/profiles_controller.rb @@ -63,7 +63,7 @@ class ProfilesController < Profiles::ApplicationController message = "Username change failed - #{result[:message]}" format.html { redirect_back_or_default(default: { action: 'show' }, options: { alert: message }) } - format.json { render json: result, status: :bad_request } + format.json { render json: { message: message }, status: :bad_request } end end end |