File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,9 @@ const ActionCertaintyCard = ({
4747 [ onThresholdChange ]
4848 ) ;
4949 const sliderValue = requiredConfidence * 100 ;
50- const currentConfidence = predictionResult ?. confidences [ actionId ] ?? 0 ;
50+ const currentConfidence = Math . round (
51+ ( predictionResult ?. confidences [ actionId ] ?? 0 ) * 100
52+ ) ;
5153 return (
5254 < Card
5355 py = { 2 }
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const PercentageDisplay = ({
2626 w = "60px"
2727 aria-hidden = { ! ! ariaLabel }
2828 { ...rest }
29- > { `${ Math . round ( value * 100 ) } %` } </ Text >
29+ > { `${ value } %` } </ Text >
3030 </ >
3131 ) ;
3232} ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const PercentageMeter = ({
2626 // Use inline style attribute to avoid style tags being
2727 // constantly appended to the <head/> element.
2828 style = { {
29- width : `${ Math . round ( value * 100 ) } %` ,
29+ width : `${ value } %` ,
3030 } }
3131 h = { height }
3232 rounded = "full"
You can’t perform that action at this time.
0 commit comments