From dc04d8be41f959ad1cd30870ce585636e35cdc55 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Tue, 26 Nov 2024 22:29:35 +0530 Subject: [PATCH] remove buttons on compiler erros --- libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx b/libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx index de2f3285ec4..d9e39a7be05 100644 --- a/libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx +++ b/libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx @@ -280,8 +280,8 @@ export const SolidityCompiler = (props: SolidityCompilerProps) => { setConfigFilePath={setConfigFilePath} solJsonBinData={state.solJsonBinData} /> - - {contractsFile[currentFile] && contractsFile[currentFile].contractsDetails && ( + {/* "compileErrors[currentFile]['contracts']" field will not be there in case of compilation errors */} + {contractsFile[currentFile] && contractsFile[currentFile].contractsDetails && compileErrors[currentFile]['contracts'] && (