From 103090792d5aedf9f801cfa7ccda61b7115c57ae Mon Sep 17 00:00:00 2001 From: Shubham Kanodia Date: Mon, 2 Sep 2019 23:28:59 +0530 Subject: [PATCH] Fix rounding in similar package cards --- client/components/SimilarPackageCard/SimilarPackageCard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/components/SimilarPackageCard/SimilarPackageCard.js b/client/components/SimilarPackageCard/SimilarPackageCard.js index 53747bf2..6f37d85b 100644 --- a/client/components/SimilarPackageCard/SimilarPackageCard.js +++ b/client/components/SimilarPackageCard/SimilarPackageCard.js @@ -46,7 +46,7 @@ export default class SimilarPackageCard extends Component { return (
- {1 + Math.abs(comparisonSizePercent).toFixed(0) / 100} × + {(1 + Math.abs(comparisonSizePercent) / 100).toFixed(1)} ×
{comparisonSizePercent > 0 ? 'Larger' : 'Smaller'}