Fix bug reported by user before I forget

This commit is contained in:
Bryan Ashby 2020-05-21 21:22:49 -06:00
parent 2a93de9487
commit 5aaf568ed5
No known key found for this signature in database
GPG Key ID: B49EB437951D2542
1 changed files with 4 additions and 0 deletions

View File

@ -16,6 +16,10 @@ function trackDoorRunBegin(client, doorTag) {
}
function trackDoorRunEnd(trackInfo) {
if (!trackInfo) {
return;
}
const { startTime, client, doorTag } = trackInfo;
const diff = moment.duration(moment().diff(startTime));