Skip to content

Commit

Permalink
fixed auto fix button
Browse files Browse the repository at this point in the history
  • Loading branch information
amandal-cn committed Sep 5, 2024
1 parent 3d28f79 commit e02e98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/CodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ function SandpackContent({ status, children, onFixIt }: { status: string, childr
</div>
{statusMessage === "" && actionButtons}
</SandpackLayout>
{hasCompilationError && (
{errorMessage && (
<button
onClick={handleFixIt}
className={`flex items-center gap-2 absolute top-6 right-2 z-50 font-medium py-2 px-4 rounded-full transition-colors
Expand Down

0 comments on commit e02e98c

Please sign in to comment.