diff --git a/static/src/app/statistic/war-detail/war-detail.component.ts b/static/src/app/statistic/war-detail/war-detail.component.ts index 2b09dfa..749496d 100644 --- a/static/src/app/statistic/war-detail/war-detail.component.ts +++ b/static/src/app/statistic/war-detail/war-detail.component.ts @@ -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