refine else condition

This commit is contained in:
Andrew Croce 2018-09-24 12:04:10 -04:00
parent 22c642a7e1
commit 538f0a4016

View File

@ -75,7 +75,8 @@ export default {
this.spendPath += this.spendPath === '' ? 'M' : ' L'
this.spendPath += cumulativePoint
lastSpendPoint = cumulativePoint
} else {
} else if (lastSpendPoint !== '') {
this.projectedPath += this.projectedPath === '' ? `M${lastSpendPoint} L` : ' L'
this.projectedPath += cumulativePoint
}