diff --git a/pages/index.tsx b/pages/index.tsx index e406ffc..e7a9736 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -211,7 +211,7 @@ function GitCommitsList() { function calculateTimeDifferenceInMinutes(startTime: number, endTime: number): number { const differenceInSeconds = Math.abs(endTime - startTime); const differenceInMinutes = differenceInSeconds / 60; - return differenceInMinutes; + return parseFloat(differenceInMinutes.toFixed(1)); } export default GitCommitsList