Fix integer checks for custom token decimals (#1753)

This commit is contained in:
HenryNguyen5 2018-05-12 19:28:03 -04:00 committed by Daniel Ternyak
parent 12864b30d9
commit 5baa356ee1

View File

@ -109,7 +109,7 @@ export default class AddCustomTokenForm extends React.PureComponent<Props, State
const errors: { [key: string]: boolean | string } = {};
// Formatting errors
if (decimal && !isPositiveIntegerOrZero(parseInt(decimal, 10))) {
if (decimal && !isPositiveIntegerOrZero(Number(decimal))) {
errors.decimal = true;
}
if (address && !isValidETHAddress(address)) {