diff --git a/app/controllers/concerns/iframe_authentication.rb b/app/controllers/concerns/iframe_authentication.rb index 0683b361..ea767ec1 100644 --- a/app/controllers/concerns/iframe_authentication.rb +++ b/app/controllers/concerns/iframe_authentication.rb @@ -31,7 +31,9 @@ module IframeAuthentication return end - Rails.logger.error "#{self.class.name}: Authentication failed" + Rails.logger.error "#{self.class.name}: Authentication failed - no token found. " \ + "Params: #{params.keys}, Session has token: #{session[:auth_token].present?}, " \ + "Referer: #{request.referer}" render json: { error: 'Authentication required' }, status: :unauthorized end end diff --git a/app/javascript/elements/scroll_buttons.js b/app/javascript/elements/scroll_buttons.js index 6525adf9..567829f7 100644 --- a/app/javascript/elements/scroll_buttons.js +++ b/app/javascript/elements/scroll_buttons.js @@ -36,6 +36,7 @@ export default class extends HTMLElement { } isHeaderNotVisible () { + if (!this.header) return true const rect = this.header.getBoundingClientRect() return rect.bottom <= 0 || rect.top >= window.innerHeight } diff --git a/app/javascript/submission_form/completed.vue b/app/javascript/submission_form/completed.vue index 43228f63..c33fd570 100644 --- a/app/javascript/submission_form/completed.vue +++ b/app/javascript/submission_form/completed.vue @@ -33,36 +33,6 @@ {{ completedButton.title || 'Back to Website' }} - - -