Fix: DateUtil.getDate bug
This commit is contained in:
@@ -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--;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user