From 538f0a4016456c742b57093913eddab744d513d0 Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Mon, 24 Sep 2018 12:04:10 -0400 Subject: [PATCH] refine else condition --- js/components/charts/budget_chart.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/components/charts/budget_chart.js b/js/components/charts/budget_chart.js index d4ea7a96..a645acdc 100644 --- a/js/components/charts/budget_chart.js +++ b/js/components/charts/budget_chart.js @@ -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 }