QA bug fixes

This commit is contained in:
Danny Coates
2017-09-13 12:01:55 -07:00
parent 07b7bc003a
commit 8e14d3f8f7
13 changed files with 631 additions and 398 deletions

View File

@@ -4,7 +4,7 @@ const assets = require('../../common/assets');
function timeLeft(milliseconds) {
const minutes = Math.floor(milliseconds / 1000 / 60);
const hours = Math.floor(minutes / 60);
const seconds = Math.floor(milliseconds / 1000 % 60);
const seconds = Math.floor((milliseconds / 1000) % 60);
if (hours >= 1) {
return `${hours}h ${minutes % 60}m`;
} else if (hours === 0) {