File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
static/app/views/insights/pages/platform/shared/table Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import Link from 'sentry/components/links/link';
6
6
import { space } from 'sentry/styles/space' ;
7
7
import { defined } from 'sentry/utils' ;
8
8
import { formatAbbreviatedNumber } from 'sentry/utils/formatters' ;
9
+ import { formatPercentage } from 'sentry/utils/number/formatPercentage' ;
9
10
import { ThresholdCell } from 'sentry/views/insights/pages/platform/shared/table/ThresholdCell' ;
10
11
11
12
export function getErrorCellIssuesLink ( {
@@ -46,7 +47,8 @@ export function ErrorRateCell({
46
47
return (
47
48
< ThresholdCell value = { errorRate } >
48
49
< Flex align = "center" justify = "flex-end" gap = { space ( 0.5 ) } >
49
- { ( errorRate * 100 ) . toFixed ( 2 ) } %{ defined ( errorCount ) ? errorCountElement : null }
50
+ { formatPercentage ( errorRate , 2 , { minimumValue : 0.0001 } ) }
51
+ { defined ( errorCount ) ? errorCountElement : null }
50
52
</ Flex >
51
53
</ ThresholdCell >
52
54
) ;
You can’t perform that action at this time.
0 commit comments