Skip to content

Commit 6a61109

Browse files
committed
Revert 'show 0%'
1 parent 277e837 commit 6a61109

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

static/app/views/issueDetails/groupTags/tagDistribution.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ export function TagDistribution({tag}: {tag: GroupTag}) {
3434
<TagValueContent>
3535
{visibleTagValues.map((tagValue, tagValueIdx) => {
3636
const percentage = Math.round(percent(tagValue.count, tag.totalValues));
37-
const isZero = tagValue.count === 0;
38-
const displayPercentage =
39-
percentage < 1 && !isZero ? '<1%' : `${percentage.toFixed(0)}%`;
37+
const displayPercentage = percentage < 1 ? '<1%' : `${percentage.toFixed(0)}%`;
4038
return (
4139
<TagValueRow key={tagValueIdx}>
4240
<Tooltip delay={300} title={tagValue.name} skipWrapper>

0 commit comments

Comments
 (0)