mirror of https://github.com/BTCPrivate/copay.git
fix in version checking
This commit is contained in:
parent
2e99d9a8ea
commit
63210ba277
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue