1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-04 13:48:56 +02: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' }} sx={{ display: 'flex', justifyContent: 'center' }}
data-loading data-loading
> >
{(dora.projectAverage ? dora.projectAverage : 0) - {Math.round(
original.timeToProduction}{' '} (dora.projectAverage
? dora.projectAverage
: 0) - original.timeToProduction
)}{' '}
days days
</Box> </Box>
</Tooltip> </Tooltip>