Commit a14288fd authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

parent d0c980b2
......@@ -38,9 +38,9 @@ async function init() {
sums = sums + parseFloat(arr[j].profit)
if (arrNew.length ===0)
arrNew.push({sum: sums, index: i,date:arr[j].date})
arrNew.push({sum: sums, index: i,startDate:arr[i+1],date:arr[j].date})
else if (arrNew[arrNew.length-1].sum > sums)
arrNew.push({sum: sums, index: i,date:arr[j].date})
arrNew.push({sum: sums, index: i,startDate:arr[i+1],date:arr[j].date})
}
......
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