From 5df5ec12134b85e9c743ffd5b4da35aa0fed04e6 Mon Sep 17 00:00:00 2001
From: nsfisis <nsfisis@gmail.com>
Date: Sun, 16 Mar 2025 00:11:29 +0900
Subject: feat(frontend): show non-highlighted code until syntax highlighting
 complete

---
 frontend/app/components/Gaming/CodeBlock.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'frontend/app/components/Gaming/CodeBlock.tsx')

diff --git a/frontend/app/components/Gaming/CodeBlock.tsx b/frontend/app/components/Gaming/CodeBlock.tsx
index 36ccae1..16ff84e 100644
--- a/frontend/app/components/Gaming/CodeBlock.tsx
+++ b/frontend/app/components/Gaming/CodeBlock.tsx
@@ -29,7 +29,9 @@ export default function CodeBlock({ code, language }: Props) {
 
 	return (
 		<pre className="h-full w-full p-2 bg-gray-50 rounded-lg border border-gray-300 whitespace-pre-wrap break-words">
-			{highlightedCode === null ? null : (
+			{highlightedCode === null ? (
+				<code>{code}</code>
+			) : (
 				<code dangerouslySetInnerHTML={{ __html: highlightedCode }} />
 			)}
 		</pre>
-- 
cgit v1.3.1

