👷 Tests, how do they work

This commit is contained in:
Felix Rieseberg 2018-03-13 17:35:55 -07:00
parent 1b3568e66e
commit 582ef30b4a
2 changed files with 5 additions and 5 deletions

View file

@ -66,8 +66,8 @@ class CrashReporter {
getLastCrashReport () {
const reports = this.getUploadedReports()
.sort((a, b) => {
const ats = (a && a.timestamp) ? new Date(a.timestamp).getTime() : 0
const bts = (b && b.timestamp) ? new Date(b.timestamp).getTime() : 0
const ats = (a && a.date) ? new Date(a.date).getTime() : 0
const bts = (b && b.date) ? new Date(b.date).getTime() : 0
return bts - ats
})