diff --git a/app/controllers/registrant/domains_controller.rb b/app/controllers/registrant/domains_controller.rb index 8eb5009..aade4f4 100644 --- a/app/controllers/registrant/domains_controller.rb +++ b/app/controllers/registrant/domains_controller.rb @@ -81,11 +81,15 @@ def create if @invoice flash.now[:notice] = t('.success') - render turbo_stream: [ - turbo_stream.append('flash', partial: 'layouts/flash'), - turbo_stream.append('payment_method', partial: 'registrant/domains/payment_form', - locals: { invoice: @invoice}) - ] + # redirect_to registrant_pending_action_path(pending), status: :see_other + + redirect_to registrant_domains_path, status: :see_other + + # render turbo_stream: [ + # turbo_stream.append('flash', partial: 'layouts/flash'), + # turbo_stream.append('payment_method', partial: 'registrant/domains/payment_form', + # locals: { invoice: @invoice}) + # ] else flash[:alert] = @invoice.errors.full_messages render turbo_stream: turbo_stream.replace('flash', partial: 'layouts/flash')