Skip to content

Commit

Permalink
feat(BcFormatPercent): change threshold for efficiency
Browse files Browse the repository at this point in the history
See: BEDS-622

Co-authored-by: marcel-bitfly <[email protected]>
  • Loading branch information
peterbitfly and marcel-bitfly committed Oct 25, 2024
1 parent 5af248b commit b39b06c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/components/bc/format/FormatPercent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ const data = computed(() => {
}
label = formatPercent(percent, config)
if (props.comparePercent !== undefined) {
if (Math.abs(props.comparePercent - percent) <= 0.5) {
const thresholdToDifferenciateUnderperformerAndOverperformer = 0.25
if (Math.abs(props.comparePercent - percent) <= thresholdToDifferenciateUnderperformerAndOverperformer) {
className = 'text-equal'
leadingIcon = faArrowsLeftRight
compareResult = 'equal'
Expand Down

0 comments on commit b39b06c

Please sign in to comment.