From e9dadfd0ef2922afd0831b65774ea55097d5471b Mon Sep 17 00:00:00 2001 From: henry-tp Date: Mon, 22 Jun 2026 16:46:09 -0700 Subject: [PATCH] WEB-4611 round CGM use before display --- app/components/clinic/BgSummaryCell.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/clinic/BgSummaryCell.js b/app/components/clinic/BgSummaryCell.js index c46cf18fda..60df9039ab 100644 --- a/app/components/clinic/BgSummaryCell.js +++ b/app/components/clinic/BgSummaryCell.js @@ -6,6 +6,7 @@ import { withTranslation } from 'react-i18next'; import { utils as vizUtils, colors as vizColors } from '@tidepool/viz'; const { GLYCEMIC_RANGES_PRESET } = vizUtils.constants; +const { bankersRound } = vizUtils.stat; import { MGDL_PER_MMOLL, MGDL_UNITS } from '../../core/constants'; import BgRangeSummary from './BgRangeSummary'; @@ -117,7 +118,7 @@ export const BgSummaryCell = ({ }, [summary, showExtremeHigh] ); - const cgmUsePercent = (summary?.timeCGMUsePercent || 0); + const cgmUsePercent = bankersRound((summary?.timeCGMUsePercent || 0), 2); const minCgmHours = 24; const minCgmPercent = 0.7;