]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix comma causing Terser issue (#9326)
authorTycho Bokdam <tycho@palmtreecoding.com>
Mon, 28 Jun 2021 19:37:21 +0000 (21:37 +0200)
committerGitHub <noreply@github.com>
Mon, 28 Jun 2021 19:37:21 +0000 (22:37 +0300)
src/scales/scale.linearbase.js

index 8bd3c7e1fef83fd150822ec0ab1df9aec7e9ed4e..9e53038e394d698c5a218daf11273acf517edc76 100644 (file)
@@ -98,7 +98,7 @@ function generateTicks(generationOptions, dataRange) {
   // until this point
   const decimalPlaces = Math.max(
     _decimalPlaces(spacing),
-    _decimalPlaces(niceMin),
+    _decimalPlaces(niceMin)
   );
   factor = Math.pow(10, isNullOrUndef(precision) ? decimalPlaces : precision);
   niceMin = Math.round(niceMin * factor) / factor;