Fix last commit.

This commit is contained in:
Stefan Thomas
2014-01-05 14:41:11 -08:00
parent f135021c52
commit c8bb6e2a6a

View File

@@ -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) {