diff --git a/app/controllers/settings/profile_picture_controller.rb b/app/controllers/settings/profile_picture_controller.rb index c44e1200..68359fe7 100644 --- a/app/controllers/settings/profile_picture_controller.rb +++ b/app/controllers/settings/profile_picture_controller.rb @@ -12,9 +12,10 @@ class Settings::ProfilePictureController < ApplicationController text += t(".notice.profile_header") if user_attributes[:profile_header] flash[:success] = text else - flash[:error] = t(".error") + # CarrierWave resets the image to the default upon an error + current_user.reload end - redirect_to settings_profile_path + render "settings/profile/edit" end end