diff --git a/app/overrides/layouts/decidim/_question_header/add_consultation_callout.html.erb.deface b/app/overrides/layouts/decidim/_question_header/add_consultation_callout.html.erb.deface index 0163afe1..aec8ca4a 100644 --- a/app/overrides/layouts/decidim/_question_header/add_consultation_callout.html.erb.deface +++ b/app/overrides/layouts/decidim/_question_header/add_consultation_callout.html.erb.deface @@ -1,6 +1,6 @@ -<% if user_signed_in? %> +<% if user_signed_in? && defined?(current_question) && current_question&.consultation %>
<%= render "decidim/consultations/question_votes/callout", consultation: current_question.consultation %>