diff --git a/app/helpers/comments_helper.rb b/app/helpers/comments_helper.rb
index fbe935e55..456942709 100644
--- a/app/helpers/comments_helper.rb
+++ b/app/helpers/comments_helper.rb
@@ -47,7 +47,7 @@ module CommentsHelper
safe_join(items.chunk_while { |i, j| grouped_item?(i) && grouped_item?(j) }.map do |chunk|
if chunk.first.is_a?(Comment)
- render partial: "comments/comment", object: chunk.first
+ render "comments/comment", comment: chunk.first
else
render_grouped_items(chunk)
end
diff --git a/app/views/bubbles/show.html.erb b/app/views/bubbles/show.html.erb
index 48d026bf0..b833758a9 100644
--- a/app/views/bubbles/show.html.erb
+++ b/app/views/bubbles/show.html.erb
@@ -28,5 +28,5 @@
diff --git a/app/views/comments/_comment.html.erb b/app/views/comments/_comment.html.erb
index 5c28c750d..4a69eff64 100644
--- a/app/views/comments/_comment.html.erb
+++ b/app/views/comments/_comment.html.erb
@@ -4,7 +4,7 @@
diff --git a/app/views/comments/_new.html.erb b/app/views/comments/_new.html.erb
index 2f0da7c9d..9405d4854 100644
--- a/app/views/comments/_new.html.erb
+++ b/app/views/comments/_new.html.erb
@@ -6,9 +6,9 @@
<%= Current.user.name %>
- <%= form_with model: Comment.new, url: project_bubble_comments_path(@bubble.project, @bubble), class: "flex flex-column gap full-width" do |form| %>
+ <%= form_with model: Comment.new, url: project_bubble_comments_path(bubble.project, bubble), class: "flex flex-column gap full-width" do |form| %>
<%= form.text_area :body, class: "input", required: true, rows: 4,
- placeholder: (@bubble.comments.empty? && @bubble.creator == Current.user) ? "Add some notes…" : "Type your comment…" %>
+ placeholder: (bubble.comments.empty? && bubble.creator == Current.user) ? "Add some notes…" : "Type your comment…" %>
<%= form.button class: "btn btn--reversed center" do %>
<%= image_tag "check.svg", aria: { hidden: "true" }, size: 24 %>