Skip to content

Commit

Permalink
chore(issue-details): Round "other" percentage down (#83673)
Browse files Browse the repository at this point in the history
  • Loading branch information
roggenkemper authored and andrewshie-sentry committed Jan 22, 2025
1 parent d7f6795 commit c34b8d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions static/app/views/issueDetails/groupTags/tagDistribution.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function TagPreviewDistribution({tag}: {tag: GroupTag}) {
const totalVisible = tag.topValues.reduce((sum, value) => sum + value.count, 0);
const hasOther = totalVisible < tag.totalValues;

const otherPercentage = Math.round(
const otherPercentage = Math.floor(
percent(tag.totalValues - totalVisible, tag.totalValues)
);
const otherDisplayPercentage =
Expand Down Expand Up @@ -62,7 +62,7 @@ export function TagDistribution({tag}: {tag: GroupTag}) {
const totalVisible = visibleTagValues.reduce((sum, value) => sum + value.count, 0);
const hasOther = totalVisible < tag.totalValues;

const otherPercentage = Math.round(
const otherPercentage = Math.floor(
percent(tag.totalValues - totalVisible, tag.totalValues)
);
const otherDisplayPercentage =
Expand Down

0 comments on commit c34b8d8

Please sign in to comment.