1
0
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:
slowbackspace 2019-04-22 11:35:49 +02:00
parent 39c683bf0c
commit 3efa72988f

View File

@ -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);
} }