mirror of https://github.com/BTCPrivate/copay.git
Skip empty token and tokenTime on wallet serialization
This commit is contained in:
parent
ddffc9810c
commit
4439bed74c
|
@ -168,12 +168,15 @@ Wallet.prototype._optsToObj = function() {
|
|||
requiredCopayers: this.requiredCopayers,
|
||||
totalCopayers: this.totalCopayers,
|
||||
name: this.name,
|
||||
token: this.token,
|
||||
tokenTime: new Date().getTime(),
|
||||
netKey: this.netKey,
|
||||
version: this.version,
|
||||
};
|
||||
|
||||
if (this.token){
|
||||
obj.token = this.token;
|
||||
obj.tokenTime = new Date().getTime();
|
||||
}
|
||||
|
||||
return obj;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue