diff --git a/js/models/core/WalletFactory.js b/js/models/core/WalletFactory.js index 80177dc8a..24a69bfed 100644 --- a/js/models/core/WalletFactory.js +++ b/js/models/core/WalletFactory.js @@ -154,13 +154,12 @@ WalletFactory.prototype.open = function(walletId, opts) { this.storage._setPassphrase(opts.passphrase); var w = this.read(walletId); - this._checkVersion(w.version); if (w) { + this._checkVersion(w.version); w.store(); } - return w; };