mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-22 00:48:59 +00:00
Fix integer checks for custom token decimals (#1753)
This commit is contained in:
parent
12864b30d9
commit
5baa356ee1
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user