Fix undefined variable error (#18567)

This commit is contained in:
Ben Halpern 2022-10-11 09:40:37 -04:00 committed by GitHub
parent 201f4d998a
commit f1bdfcbd34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@
<%= render partial: "articles/comment_tree",
collection: article_comment_tree(@article, @comments_to_show_count, @comments_order),
as: :comment_node,
cached: proc { |comment, _sub_comments| [comment, @comments_order, user_signed_in] } %>
cached: proc { |comment, _sub_comments| [comment, @comments_order, user_signed_in?] } %>
<% end %>
</div>
</div>