diff --git a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx index 658c533ac6..992fbb4bd4 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/compiler-container.tsx @@ -579,7 +579,7 @@ export const CompilerContainer = (props: CompilerContainerProps) => { { warningIcon.current && warningIcon.current.style.visibility === 'hidden' && } - Compile { state.compiledFileName || '' } + Compile { typeof state.compiledFileName === 'string' ? helper.extractNameFromKey(state.compiledFileName) || '' : '' }