Skip to content

Commit

Permalink
fix deletion of recurring donation instance if order fails to finalize
Browse files Browse the repository at this point in the history
  • Loading branch information
winsonwan committed Mar 1, 2024
1 parent 00fbfa8 commit d9880dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/store_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def process_donation
render :action => 'place_order'
else
# if order fails to finalize, destroy recurring donation row
@recurring_donation.destroy
@recurring_donation.destroy if @recurring_donation
redirect_to redirect_route, :alert => @gOrderInProgress.errors.as_html
end
end
Expand Down

0 comments on commit d9880dd

Please sign in to comment.