pull/5370/head
aniket-engg 3 years ago committed by Aniket
parent 318d4e2809
commit 7fbbbd8303
  1. 2
      libs/remix-ui/solidity-unit-testing/src/lib/solidity-unit-testing.tsx

@ -565,7 +565,7 @@ export const SolidityUnitTesting = (props: Record<string, any>) => {
const updateRunAction = async (currentFile: any = null) => { const updateRunAction = async (currentFile: any = null) => {
const isSolidityActive = await testTab.appManager.isActive('solidity') const isSolidityActive = await testTab.appManager.isActive('solidity')
if (!isSolidityActive || !selectedTests.current?.length) { if (!isSolidityActive || !selectedTests.current?.length) {
setDisableRunButton(true) // setDisableRunButton(true)
if (!currentFile || (currentFile && currentFile.split('.').pop().toLowerCase() !== 'sol')) { if (!currentFile || (currentFile && currentFile.split('.').pop().toLowerCase() !== 'sol')) {
setRunButtonTitle('No solidity file selected') setRunButtonTitle('No solidity file selected')
} else { } else {

Loading…
Cancel
Save