Merge pull request #761 from matiu/bug/n-a-to-address

rm n/a as addressTo possible value
This commit is contained in:
Matias Alejo Garcia 2018-01-24 15:43:24 -03:00 committed by GitHub
commit 1c271cfff3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -3056,7 +3056,7 @@ WalletService.prototype.getTxHistory = function(opts, cb) {
var firstExternalOutput = _.find(outputs, {
isMine: false
});
addressTo = firstExternalOutput ? firstExternalOutput.address : 'N/A';
addressTo = firstExternalOutput ? firstExternalOutput.address : null;
};
if (action == 'sent' && inputs.length != (_.filter(inputs,'isMine')).length ) {