From b86790c8543c239a532fd7697d4652829019d385 Mon Sep 17 00:00:00 2001 From: Chris Clark Date: Tue, 3 Feb 2015 18:23:18 -0800 Subject: [PATCH] Check for null in isNumber --- src/js/ripple/amount.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/ripple/amount.js b/src/js/ripple/amount.js index ec491e96..db4a455d 100644 --- a/src/js/ripple/amount.js +++ b/src/js/ripple/amount.js @@ -467,7 +467,7 @@ Amount.prototype.parse_human = function(j, opts) { var words = j.split(' ').filter(function(word) { return word !== ''; }); function isNumber(s) { - return isFinite(s) && s !== ''; + return isFinite(s) && s !== '' && s !== null; } if (words.length === 1) {