From 1c9a7c1294035befa5665494940ef45bc561fa64 Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Sun, 7 Aug 2022 08:05:08 -0500 Subject: [PATCH] round calculated score --- squarenotsquare/src/libs/CalculateScore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/squarenotsquare/src/libs/CalculateScore.js b/squarenotsquare/src/libs/CalculateScore.js index 8918179..0dfc6c0 100644 --- a/squarenotsquare/src/libs/CalculateScore.js +++ b/squarenotsquare/src/libs/CalculateScore.js @@ -1,5 +1,5 @@ export function calculateSquareScore (answers, finalTime) { - let timeScore = (60 - finalTime) * 1000; + let timeScore = Math.round((60 - finalTime) * 1000); let answerScore = answers * 1000; let finalScore = timeScore + answerScore; return finalScore;