Skip to content

Commit

Permalink
Merge pull request #2255 from 18F/mb-fix-phones-controller
Browse files Browse the repository at this point in the history
Fix presenter in Users::PhonesController#update
  • Loading branch information
monfresh authored Jun 19, 2018
2 parents 57b1441 + 98bd394 commit 916f275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users/phones_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def edit

def update
@user_phone_form = UserPhoneForm.new(current_user)
@presenter = PhoneSetupPresenter.new(current_user)
@presenter = PhoneSetupPresenter.new(current_user.otp_delivery_preference)
if @user_phone_form.submit(user_params).success?
process_updates
bypass_sign_in current_user
Expand Down

0 comments on commit 916f275

Please sign in to comment.