remove useless date constructor

pull/16/head
HardiReady 2017-11-02 11:22:27 +01:00
parent b79ccbb1af
commit 9a45a43b7a
1 changed files with 1 additions and 1 deletions

View File

@ -353,7 +353,7 @@ export class WarDetailComponent {
[this.tmpPointData, this.tmpBudgetData, this.tmpTransportData, this.tmpReviveData, this.tmpStabilizeData,
this.tmpKillData, this.tmpFrienlyFireData, this.tmpFlagCaptureData].forEach(tmp => {
for (let j in [0, 1]) {
if (new Date(tmp[j].series[tmp[j].series.length - 1].name) < endDate) {
if (tmp[j].series[tmp[j].series.length - 1].name < endDate) {
tmp[j].series.push({
'name': endDate,
'value': tmp[j].series[tmp[j].series.length - 1].value