diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 9b7c54ba75..8655a73c63 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -114,6 +114,7 @@ class CompileTab { compileIcon.setAttribute('title', 'idle') }) appEvents.compiler.register('compilationStarted', function start () { + errorContainer.innerHTML = '' compileIcon.classList.remove(`${css.bouncingIcon}`) compileIcon.classList.add(`${css.spinningIcon}`) compileIcon.setAttribute('title', 'compiling...') @@ -139,10 +140,6 @@ class CompileTab { function contractNames (appAPI, appEvents, opts) { var contractsDetails = {} - appEvents.compiler.register('compilationStarted', () => { - errorContainer.innerHTML = '' - }) - appEvents.compiler.register('compilationFinished', function (success, data, source) { // reset the contractMetadata list (used by the publish action) contractsDetails = {}