1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: round dora metrics (#4755)

* Small change to round numbers in a table
This commit is contained in:
Fredrik Strand Oseberg 2023-09-15 14:36:35 +02:00 committed by GitHub
parent 94b65542e8
commit 387f48617d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
</Box>
</Tooltip>