Commit 3cf8cadb authored by Ahmad Nemati's avatar Ahmad Nemati

git pull

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