From 2112b2f3d3a79671a6a1420daf65c283311ee6f4 Mon Sep 17 00:00:00 2001 From: Alex Turchyn Date: Wed, 5 Jul 2023 20:41:21 +0300 Subject: [PATCH] minor UI fixes --- app/controllers/submit_form_controller.rb | 4 ++-- app/views/shared/_posthog.html.erb | 2 +- app/views/users/index.html.erb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/submit_form_controller.rb b/app/controllers/submit_form_controller.rb index e1257d5b..b7c3b26c 100644 --- a/app/controllers/submit_form_controller.rb +++ b/app/controllers/submit_form_controller.rb @@ -10,9 +10,9 @@ class SubmitFormController < ApplicationController Submitter.preload(submission: { template: { documents_attachments: { preview_images_attachments: :blob } } }) .find_by!(slug: params[:slug]) - cookies.signed[:submitter_sid] = @submitter.signed_id + return redirect_to submit_form_completed_path(@submitter.slug) if @submitter.completed_at? - redirect_to submit_form_completed_path(@submitter.slug) if @submitter.completed_at? + cookies[:submitter_sid] = @submitter.signed_id end def update diff --git a/app/views/shared/_posthog.html.erb b/app/views/shared/_posthog.html.erb index 5699ecc2..bb563284 100644 --- a/app/views/shared/_posthog.html.erb +++ b/app/views/shared/_posthog.html.erb @@ -1,4 +1,4 @@ diff --git a/app/views/users/index.html.erb b/app/views/users/index.html.erb index 679b8bff..4530c31e 100644 --- a/app/views/users/index.html.erb +++ b/app/views/users/index.html.erb @@ -1,4 +1,4 @@ -
+
<%= render 'shared/settings_nav' %>