diff --git a/apps/web/app/(dash)/chat/chatWindow.tsx b/apps/web/app/(dash)/chat/chatWindow.tsx
index 3d7ca295..662c7217 100644
--- a/apps/web/app/(dash)/chat/chatWindow.tsx
+++ b/apps/web/app/(dash)/chat/chatWindow.tsx
@@ -23,7 +23,7 @@ import { codeLanguageSubset } from "@/lib/constants";
import { toast } from "sonner";
import Link from "next/link";
import { createChatObject } from "@/app/actions/doers";
-import { ClipboardIcon } from "@heroicons/react/24/outline";
+import { ClipboardIcon, SpeakerWaveIcon } from "@heroicons/react/24/outline";
function ChatWindow({
q,
@@ -305,10 +305,25 @@ function ChatWindow({
- {/* TODO: speak response */}
- {/* */}
+ {/* speak response */}
+
{/* copy response */}
- {chat.answer.justification &&
- chat.answer.justification.length && (
- 0 ? "flex" : "hidden"}`}
+ {chat.answer.justification?.length && (
+
0 ? "flex" : "hidden"}`}
+ >
+
-
-
-
- Justification
-
-
- {chat.answer.justification.length > 0
- ? chat.answer.justification
- .replaceAll(
- "",
- "",
- )
- .replaceAll(
- "",
- "",
- )
- : "No justification provided."}
-
-
-
-
- )}
+
+
+ Justification
+
+
+ {chat.answer.justification.length > 0
+ ? chat.answer.justification
+ .replaceAll("", "")
+ .replaceAll(
+ "",
+ "",
+ )
+ : "No justification provided."}
+
+
+
+
+ )}