Timothy J. Baek 11 months ago
parent
commit
b088b06575
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/components/chat/Messages/CodeBlock.svelte

+ 1 - 1
src/lib/components/chat/Messages/CodeBlock.svelte

@@ -213,7 +213,7 @@ __builtins__.input = input`);
 			<div class="p-1">{@html lang}</div>
 
 			<div class="flex items-center">
-				{#if ['', 'python'].includes(lang) && (lang === 'python' || checkPythonCode(code))}
+				{#if lang === 'python' || (lang === '' && checkPythonCode(code))}
 					{#if executing}
 						<div class="copy-code-button bg-none border-none p-1 cursor-not-allowed">Running</div>
 					{:else}