Remember to stringify the new response too.

This commit is contained in:
Adam Treat 2023-04-25 22:46:33 -04:00
parent 2e0c9e4e13
commit 704ce45a39

View File

@ -377,7 +377,7 @@ Window {
if (isResponse && item.thumbsUpState !== item.thumbsDownState)
str += ", \"rating\": \"" + (item.thumbsUpState ? "positive" : "negative") + "\"";
if (isResponse && item.newResponse !== "")
str += ", \"edited_content\": \"" + item.newResponse + "\"";
str += ", \"edited_content\": \"" + JSON.stringify(item.newResponse) + "\"";
if (isResponse && item.stopped)
str += ", \"stopped\": \"true\""
if (!isResponse)