pull/5370/head
Joseph Izang 2 years ago committed by Aniket
parent c0b3245b77
commit 36fd207d71
  1. 5
      libs/remix-ui/solidity-compiler/src/lib/contract-selection.tsx

@ -233,12 +233,13 @@ export const ContractSelection = (props: ContractSelectionProps) => {
}
const showFlattener = () => {
const confirmNodeType = api.getCompilationResult().data.sources[api.currentFile].ast.nodes.some(x => x.nodeType === 'ImportDirective')
const confirmNodeType = api.getCompilationResult().data.sources[api.currentFile]
.ast.nodes.some(x => x.nodeType === 'ImportDirective')
const currentFile = api.currentFile.split('/')[1]
const contractListConfirm = contractList.some(x => x.file === currentFile)
return confirmNodeType && contractListConfirm
}
return (
// define swarm logo
<>

Loading…
Cancel
Save