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) {