diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 0108cf42f0..9a12a28ac2 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -114,7 +114,7 @@ class CompileTab extends ViewPlugin { if (success) { // forwarding the event to the appManager infra this.emit('compilationFinished', source.target, source, 'soljson', data) - if (data.errors) { + if (data.errors && data.errors.length > 0) { this.emit('statusChanged', { key: data.errors.length, title: `compilation finished successful with warning${data.errors.length > 1 ? 's' : ''}`,