Remember to stringify the new response too.

This commit is contained in:
Adam Treat 2023-04-25 22:46:33 -04:00
parent e3ae98f975
commit 7f56275f4f

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)