Unverified Commit 2def63cc authored by Liana Husikyan's avatar Liana Husikyan Committed by GitHub

check for error list length and not existence

parent 372ed022
......@@ -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' : ''}`,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment