compiler result: check error as well

pull/3094/head
LianaHus 6 years ago
parent f66beb3f85
commit bbf6dc1c82
  1. 2
      src/app/tabs/compile-tab.js

@ -128,7 +128,7 @@ class CompileTab extends CompilerApi {
)
})
} else {
const count = data.errors.filter(error => error.severity === 'error').length.toString()
const count = (data.errors ? data.errors.filter(error => error.severity === 'error').length : 0 + data.error ? 1 : 0).toString()
this.events.emit('statusChanged', {key: count, title: 'compilation failed', type: 'danger'})
}
// Update contract Selection

Loading…
Cancel
Save