diff --git a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/InsightsCard/InsightItem.tsx b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/InsightsCard/InsightItem.tsx index a8ac5b54d..31c8370c2 100644 --- a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/InsightsCard/InsightItem.tsx +++ b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/InsightsCard/InsightItem.tsx @@ -2,6 +2,7 @@ import { IssueCategory } from 'App/types/filter/filterType'; import React from 'react'; import { Icon } from 'UI'; import cn from 'classnames'; +import { numberWithCommas } from 'App/utils' interface Props { item: any; @@ -29,7 +30,7 @@ function InsightItem(props: Props) { export default InsightItem; -function Change({ change, isIncreased }: any) { +function Change({ change, isIncreased, unit = "%" }: any) { return (
- {change}% + {numberWithCommas(Math.abs(change)) + unit} ); } @@ -60,9 +61,9 @@ function ErrorItem({ item, className, onClick }: any) { > ) : ( <> -