From 387f48617d4b75318b2b705854348ca611480d3b Mon Sep 17 00:00:00 2001 From: Fredrik Strand Oseberg Date: Fri, 15 Sep 2023 14:36:35 +0200 Subject: [PATCH] fix: round dora metrics (#4755) * Small change to round numbers in a table --- .../Project/ProjectDoraMetrics/ProjectDoraMetrics.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/component/project/Project/ProjectDoraMetrics/ProjectDoraMetrics.tsx b/frontend/src/component/project/Project/ProjectDoraMetrics/ProjectDoraMetrics.tsx index eb71cf1112..203b15b84f 100644 --- a/frontend/src/component/project/Project/ProjectDoraMetrics/ProjectDoraMetrics.tsx +++ b/frontend/src/component/project/Project/ProjectDoraMetrics/ProjectDoraMetrics.tsx @@ -117,8 +117,11 @@ export const ProjectDoraMetrics = () => { sx={{ display: 'flex', justifyContent: 'center' }} data-loading > - {(dora.projectAverage ? dora.projectAverage : 0) - - original.timeToProduction}{' '} + {Math.round( + (dora.projectAverage + ? dora.projectAverage + : 0) - original.timeToProduction + )}{' '} days