From 8882ca8e874af3e3b73706336638a299ca81def6 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Wed, 16 Dec 2015 16:15:40 -0300 Subject: [PATCH] Fixes proposals with multiple outputs with only one output --- src/js/services/txFormatService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/services/txFormatService.js b/src/js/services/txFormatService.js index d94d9bf92..15032794d 100644 --- a/src/js/services/txFormatService.js +++ b/src/js/services/txFormatService.js @@ -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) {