Skip to content

Commit b86790c

Browse files
author
Chris Clark
committedFeb 4, 2015
Check for null in isNumber
1 parent c8f18c8 commit b86790c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/js/ripple/amount.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ Amount.prototype.parse_human = function(j, opts) {
467467
var words = j.split(' ').filter(function(word) { return word !== ''; });
468468

469469
function isNumber(s) {
470-
return isFinite(s) && s !== '';
470+
return isFinite(s) && s !== '' && s !== null;
471471
}
472472

473473
if (words.length === 1) {

0 commit comments

Comments
 (0)