diff --git a/opentech/static_src/src/javascript/apply/edit-comment.js b/opentech/static_src/src/javascript/apply/edit-comment.js
index 509bd23612ac9adc30a31065a7b1855aed1d0cf5..54012df293ba976a2469abca7542e7e2b95776e0 100644
--- a/opentech/static_src/src/javascript/apply/edit-comment.js
+++ b/opentech/static_src/src/javascript/apply/edit-comment.js
@@ -20,7 +20,7 @@
 
         const editBlockWrapper = $(this).closest(feedContent).find(editBlock);
         const commentWrapper = $(this).closest(feedContent).find(comment);
-        const commentContents = $(commentWrapper).data('comment');
+        const commentContents = $(commentWrapper).attr('data-comment');
 
         // hide the edit link and original comment
         $(this).parent().hide();
@@ -55,7 +55,7 @@
     // handle submit
     $(document).on('click', submitEditButton, function () {
         const commentContainer = $(this).closest(editBlock).siblings(comment);
-        const id = $(commentContainer).data('id');
+        const id = $(commentContainer).attr('data-id');
         const editedComment = $(this).closest(pageDown).find('.wmd-preview').html();
 
         // TODO - get correct URL