From f4b36867ffbb6a1fb627b26f39388d90e65bb534 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 24 Aug 2020 20:15:46 -0400 Subject: [PATCH] Fixed duplicate variable --- src/utils/getFormattedTime.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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