From c8bb6e2a6a016a0310d41da3e61b9cba7450161d Mon Sep 17 00:00:00 2001 From: Stefan Thomas Date: Sun, 5 Jan 2014 14:41:11 -0800 Subject: [PATCH] Fix last commit. --- src/js/ripple/account.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/ripple/account.js b/src/js/ripple/account.js index be252e9a..4f221068 100644 --- a/src/js/ripple/account.js +++ b/src/js/ripple/account.js @@ -163,7 +163,10 @@ Account.prototype.getNextSequence = function(callback) { var callback = typeof callback === 'function' ? callback : function(){}; function accountInfo(err, info) { - if (err && err.error === "actNotFound") { + if (err && + "object" === typeof err && + "object" === typeof err.remote && + err.remote.error === "actNotFound") { // New accounts will start out as sequence zero callback(null, 0); } else if (err) {