Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 24b3b9d

Browse files
author
Shammamah Hossain
committed
Directly return result of convert.
1 parent 1afbe7e commit 24b3b9d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/Input.react.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ export default class Input extends PureComponent {
9393
}
9494

9595
getValueAsNumber(value) {
96-
const numericValue = convert(value);
97-
return numericValue % 1 === 0 ? Math.floor(numericValue) : numericValue;
96+
return convert(value);
9897
}
9998

10099
setInputValue(base, value) {

0 commit comments

Comments
 (0)