diff --git a/app/controllers/spree/addresses_controller.rb b/app/controllers/spree/addresses_controller.rb index 9100cf72..a258d6dd 100644 --- a/app/controllers/spree/addresses_controller.rb +++ b/app/controllers/spree/addresses_controller.rb @@ -41,8 +41,8 @@ def update else new_address = @address.clone new_address.attributes = address_params - @address.update_attribute(:deleted_at, Time.now) if new_address.save + @address.update_attribute(:deleted_at, Time.now) flash[:notice] = I18n.t(:successfully_updated, scope: :address_book) redirect_back_or_default(account_path) else