diff --git a/src/utils/getFormattedTime.js b/src/utils/getFormattedTime.js index 37d22b6..0d86271 100644 --- a/src/utils/getFormattedTime.js +++ b/src/utils/getFormattedTime.js @@ -1,7 +1,7 @@ //converts time in seconds to minutes:seconds -module.exports = function getFormattedTime(seconds) { - let minutes = Math.floor(seconds / 60); - let seconds = seconds - minutes * 60; +module.exports = function getFormattedTime(totalSeconds) { + let minutes = Math.floor(totalSeconds / 60); + let seconds = totalSeconds - minutes * 60; let secondsDisplay = seconds.toFixed(3); if (seconds < 10) { //add a zero