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

Commit

Permalink
Directly return result of convert.
Browse files Browse the repository at this point in the history
  • Loading branch information
Shammamah Hossain committed Jan 21, 2020
1 parent 1afbe7e commit 24b3b9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/Input.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ export default class Input extends PureComponent {
}

getValueAsNumber(value) {
const numericValue = convert(value);
return numericValue % 1 === 0 ? Math.floor(numericValue) : numericValue;
return convert(value);
}

setInputValue(base, value) {
Expand Down

0 comments on commit 24b3b9d

Please sign in to comment.