Skip to content

Commit 58e82ef

Browse files
Aniket-EnggLianaHus
authored andcommitted
remove buttons on compiler erros
1 parent 057f359 commit 58e82ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: libs/remix-ui/solidity-compiler/src/lib/solidity-compiler.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ export const SolidityCompiler = (props: SolidityCompilerProps) => {
280280
setConfigFilePath={setConfigFilePath}
281281
solJsonBinData={state.solJsonBinData}
282282
/>
283-
284-
{contractsFile[currentFile] && contractsFile[currentFile].contractsDetails && (
283+
{/* "compileErrors[currentFile]['contracts']" field will not be there in case of compilation errors */}
284+
{contractsFile[currentFile] && contractsFile[currentFile].contractsDetails && compileErrors[currentFile]['contracts'] && (
285285
<ContractSelection
286286
api={api}
287287
compiledFileName={currentFile}

0 commit comments

Comments
 (0)