diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 7663adf87a..5382ae27eb 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -128,7 +128,7 @@ class CompileTab extends CompilerApi { ) }) } else { - const count = errorList.filter(error => error.severity === 'error').length.toString() + const count = data.errors.filter(error => error.severity === 'error').length.toString() this.events.emit('statusChanged', {key: count, title: 'compilation failed', type: 'danger'}) } // Update contract Selection