diff --git a/plugins/cost-insights/src/components/CostGrowth/CostGrowth.tsx b/plugins/cost-insights/src/components/CostGrowth/CostGrowth.tsx index cc66c05d3f..51f9c61e7b 100644 --- a/plugins/cost-insights/src/components/CostGrowth/CostGrowth.tsx +++ b/plugins/cost-insights/src/components/CostGrowth/CostGrowth.tsx @@ -16,11 +16,7 @@ import React from 'react'; import classnames from 'classnames'; -import { - CurrencyType, - Duration, - GrowthType, -} from '../../types'; +import { CurrencyType, Duration, GrowthType } from '../../types'; import { ChangeStatistic } from '@backstage/plugin-cost-insights-common'; import { rateOf } from '../../utils/currency'; import { growthOf } from '../../utils/change'; diff --git a/plugins/cost-insights/src/components/CostGrowth/CostGrowthIndicator.tsx b/plugins/cost-insights/src/components/CostGrowth/CostGrowthIndicator.tsx index 123d1e40b7..cf07d97d0a 100644 --- a/plugins/cost-insights/src/components/CostGrowth/CostGrowthIndicator.tsx +++ b/plugins/cost-insights/src/components/CostGrowth/CostGrowthIndicator.tsx @@ -40,6 +40,7 @@ export const CostGrowthIndicator = (props: CostGrowthIndicatorProps) => { const { change, formatter, className, ...extraProps } = props; const classes = useStyles(); + const growth = growthOf(change, engineerThreshold); const classNames = classnames(classes.indicator, className, {