Skip to content

Commit

Permalink
fix(ai-explain): feedback copy
Browse files Browse the repository at this point in the history
  • Loading branch information
fiji-flo committed Jun 28, 2023
1 parent e342081 commit 0a80005
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/src/document/code/ai-explain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ async function postFeedback(
function feedback(hash: () => string | null, signature: string): Element {
const div = document.createElement("div");
div.classList.add("ai-explain-feedback");
div.append(document.createTextNode("How's this answer?"));
div.append(document.createTextNode("Was this answer useful?"));
div.appendChild(
thumbs("down", "Was this answer useful?", async () => {
thumbs("down", "This answer was not very useful.", async () => {
await postFeedback("thumbs_down", hash, signature);
div.textContent = "Thank you for your feedback! ❤️";
})
);
div.appendChild(
thumbs("up", "This answer was useful!", async () => {
thumbs("up", "This answer was useful.", async () => {
await postFeedback("thumbs_up", hash, signature);
div.textContent = "Thank you for your feedback.";
div.textContent = "Thank you for your feedback! ❤️";
})
);
return div;
Expand Down

0 comments on commit 0a80005

Please sign in to comment.