diff --git a/react/src/components/AgentDetailModal.tsx b/react/src/components/AgentDetailModal.tsx index ce6b89c311..19595b0707 100644 --- a/react/src/components/AgentDetailModal.tsx +++ b/react/src/components/AgentDetailModal.tsx @@ -93,13 +93,14 @@ const AgentDetailModal: React.FC = ({ = ({ title, valueLabel, - percent = 0, + percent, width, strokeColor, labelStyle, @@ -46,7 +46,7 @@ const BAIProgressWithLabel: React.FC = ({ 100 ? 100 : percent}%`, + width: `${!percent || _.isNaN(percent) ? 0 : _.min([percent, 100])}%`, position: 'absolute', left: 0, top: 0, @@ -60,7 +60,16 @@ const BAIProgressWithLabel: React.FC = ({ {title} - + {valueLabel}