fix count in badge tooltip

pull/3892/head
Joseph Izang 2 years ago
parent cd8ae06a09
commit 5aeb71b84b
  1. 2
      apps/remix-ide/src/app/tabs/analysis-tab.js

@ -58,7 +58,7 @@ class AnalysisTab extends ViewPlugin {
}
if (count > 0) {
this.emit('statusChanged', { key: count, title: payloadType === 'error' ? `You have some problem${count === 1 ? '' : 's'}` : 'You have some warnings', type: payloadType })
this.emit('statusChanged', { key: count, title: payloadType === 'error' ? `You have ${count} problem${count === 1 ? '' : 's'}` : 'You have some warnings', type: payloadType })
} else if (count === 0) {
this.emit('statusChanged', { key: 'succeed', title: 'no warnings or errors', type: 'success' })
} else {

Loading…
Cancel
Save