Skip to content

Commit

Permalink
remove double flash
Browse files Browse the repository at this point in the history
  • Loading branch information
josemigallas committed Jan 17, 2023
1 parent 3543865 commit 7c97ffa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def hosted_success
def update_user_and_perform_action!(result)
if braintree_blue_crypt.update_user(result)
flash[:success] = 'Credit card details were successfully stored.'
redirect_to after_hosted_success_path, notice: 'Credit card details were successfully stored.'
redirect_to after_hosted_success_path
else
flash[:notice] = 'Credit Card details could not be stored.'
render template: 'accounts/payment_gateways/edit'
Expand Down

0 comments on commit 7c97ffa

Please sign in to comment.