From 2dce076898bee272bdb2009d80bef056968667d8 Mon Sep 17 00:00:00 2001
From: Chris Lawton <chris.lawton@torchbox.com>
Date: Fri, 10 May 2019 16:31:27 +0100
Subject: [PATCH] improve update comment param names

---
 opentech/static_src/src/javascript/apply/edit-comment.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/opentech/static_src/src/javascript/apply/edit-comment.js b/opentech/static_src/src/javascript/apply/edit-comment.js
index a99927a4d..938a388b7 100644
--- a/opentech/static_src/src/javascript/apply/edit-comment.js
+++ b/opentech/static_src/src/javascript/apply/edit-comment.js
@@ -113,11 +113,11 @@
         $(el).closest(feedContent).find(lastEdited).html(`${parsedDate} ${time}`);
     };
 
-    const updateComment = (el, id, newComment, editUrl, newCommentMD) => {
+    const updateComment = (el, id, comment, editUrl, commentMarkdown) => {
+        $(el).html(comment);
         $(el).attr('data-id', id);
-        $(el).html(newComment);
-        $(el).attr('data-comment', newCommentMD);
         $(el).attr('data-edit-url', editUrl);
+        $(el).attr('data-comment', commentMarkdown);
     };
 
     const closeAllEditors = () => {
-- 
GitLab