You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the format is "0.*" and the value has no decimal places like the value 1, then numbro throws a "TypeError: Cannot read property 'length' of undefined".
The reason is code like value.toString().split('.')[1].length at a few places around line 647. A quick fix is to use (value.toString().split('.')[1]||'').length instead. Search for all code occurences of .split('.')[1].
The text was updated successfully, but these errors were encountered:
If the format is "0.*" and the value has no decimal places like the value 1, then numbro throws a "TypeError: Cannot read property 'length' of undefined".
The reason is code like
value.toString().split('.')[1].length
at a few places around line 647. A quick fix is to use(value.toString().split('.')[1]||'').length
instead. Search for all code occurences of.split('.')[1]
.The text was updated successfully, but these errors were encountered: