mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-27 10:48:22 +00:00
remove default decimals value
This commit is contained in:
parent
39c683bf0c
commit
3efa72988f
@ -5,7 +5,7 @@ export const hasUppercase = (value: string) => {
|
|||||||
return UPPERCASE_RE.test(value);
|
return UPPERCASE_RE.test(value);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const isNumber = (value: string, decimals: number = 18) => {
|
export const isNumber = (value: string, decimals: number) => {
|
||||||
if (decimals === 0) {
|
if (decimals === 0) {
|
||||||
return isAbs(value);
|
return isAbs(value);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user