Skip to content

Commit cb359d2

Browse files
author
Josh Blaha
committed
fixes it finally?
1 parent a1de222 commit cb359d2

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

gh-pages/dist/app.js

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "che-react-number-easing",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"author": "che.wf",
55
"repository": {
66
"type": "git",

src/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ class NumberEasing extends React.Component {
102102

103103
return (
104104
<span {...other} className={classes}>
105-
{useLocaleString ? displayValue.toLocaleString() :
106-
trail ? displayValue.toFixed(precision > -1 ? precision : 0) : displayValue
105+
{useLocaleString ? parseFloat(displayValue).toLocaleString() :
106+
trail ? parseFloat(displayValue).toFixed(precision > -1 ? precision : 0) : displayValue
107107
}
108108
</span>
109109
);

0 commit comments

Comments
 (0)