From 917e8622021c0b1f164962e296d0bc5277c71c0a Mon Sep 17 00:00:00 2001
From: Huu Le <39040748+leehuwuj@users.noreply.github.com>
Date: Tue, 10 Sep 2024 10:17:29 +0700
Subject: [PATCH] chore: fix ts syntax (#283)

---
 .changeset/green-cheetahs-behave.md                          | 5 +++++
 .../nextjs/app/components/ui/chat/chat-message/codeblock.tsx | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 .changeset/green-cheetahs-behave.md

diff --git a/.changeset/green-cheetahs-behave.md b/.changeset/green-cheetahs-behave.md
new file mode 100644
index 00000000..4c3ed99e
--- /dev/null
+++ b/.changeset/green-cheetahs-behave.md
@@ -0,0 +1,5 @@
+---
+"create-llama": patch
+---
+
+Fix errors in building the frontend
diff --git a/templates/types/streaming/nextjs/app/components/ui/chat/chat-message/codeblock.tsx b/templates/types/streaming/nextjs/app/components/ui/chat/chat-message/codeblock.tsx
index e71a408c..85ce6631 100644
--- a/templates/types/streaming/nextjs/app/components/ui/chat/chat-message/codeblock.tsx
+++ b/templates/types/streaming/nextjs/app/components/ui/chat/chat-message/codeblock.tsx
@@ -68,7 +68,7 @@ const CodeBlock: FC<Props> = memo(({ language, value }) => {
       3,
       true,
     )}${fileExtension}`;
-    const fileName = window.prompt("Enter file name" || "", suggestedFileName);
+    const fileName = window.prompt("Enter file name", suggestedFileName);
 
     if (!fileName) {
       // User pressed cancel on prompt.
-- 
GitLab