Fix: DateUtil.getDate bug

This commit is contained in:
2018-05-30 09:13:45 +09:00
parent f1cab7de3f
commit cec653abb7
8 changed files with 23 additions and 34 deletions
+1 -9
View File
@@ -23,17 +23,9 @@ class HistoryBoard {
return;
}
let maxIndex = historyRecordManager.count - 1;
if(maxIndex > 6)
maxIndex = 6;
for(let i = 0; i < historyRecordManager.count; i++) {
if(i > 6)
break;
let data = historyRecordManager.getAt(maxIndex);
let data = historyRecordManager.getAt(i);
this.printRecord(i, data.date, data.bestRecord);
maxIndex--;
}
}
);