Fixes proposals with multiple outputs with only one output
This commit is contained in:
parent
e92a29f538
commit
8882ca8e87
1 changed files with 2 additions and 2 deletions
|
|
@ -24,8 +24,8 @@ angular.module('copayApp.services').factory('txFormatService', function(profileS
|
|||
root.processTx = function(tx) {
|
||||
if (!tx) return;
|
||||
|
||||
var outputs = tx.outputs ? tx.outputs.length : 0;
|
||||
if (outputs > 1 && tx.action != 'received') {
|
||||
var outputs = lodash.isArray(tx.outputs) ? tx.outputs.length : 0;
|
||||
if (outputs && tx.action != 'received') {
|
||||
tx.hasMultiplesOutputs = true;
|
||||
tx.recipientCount = outputs;
|
||||
tx.amount = lodash.reduce(tx.outputs, function(total, o) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue