diff --git a/app/components/elements/ReplyEditor.jsx b/app/components/elements/ReplyEditor.jsx
index b3d48284302f810a81634f9a0662e48937c3874c..b2368ff234a247b50be818183a3ad1af0815b637 100644
--- a/app/components/elements/ReplyEditor.jsx
+++ b/app/components/elements/ReplyEditor.jsx
@@ -31,7 +31,7 @@ function stripHtmlWrapper(text) {
 function addHtmlWrapper(body) {
     if(/^<html>/.test(body)) {
         const err = "Error: content passed to addHtmlWrapper is already wrapped";
-        serverApiRecordEvent('assert_error', error);
+        serverApiRecordEvent('assert_error', err);
         console.log(err);
         return body
     }