Skip to content

Commit

Permalink
Fix rounding in similar package cards
Browse files Browse the repository at this point in the history
  • Loading branch information
pastelsky committed Sep 2, 2019
1 parent 7962850 commit 1030907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/components/SimilarPackageCard/SimilarPackageCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class SimilarPackageCard extends Component {
return (
<div>
<div className="similar-package-card__number">
{1 + Math.abs(comparisonSizePercent).toFixed(0) / 100} <span className="similar-package-card__shrink">×</span>
{(1 + Math.abs(comparisonSizePercent) / 100).toFixed(1)} <span className="similar-package-card__shrink">×</span>
</div>
<div className="similar-package-card__label">
{comparisonSizePercent > 0 ? 'Larger' : 'Smaller'}
Expand Down

0 comments on commit 1030907

Please sign in to comment.