fix empty csv

This commit is contained in:
Matias Alejo Garcia 2016-06-07 10:44:35 -03:00
commit 43194559d2
No known key found for this signature in database
GPG key ID: 02470DB551277AB3

View file

@ -51,7 +51,7 @@ angular.module('copayApp.controllers').controller('preferencesHistory',
$log.debug('Generating CSV from History');
getHistory(function(err, txs) {
if (err || !txs || !txs[0]) {
if (err || !txs) {
$log.warn('Failed to generate CSV:', err);
if (cb) return cb(err);
return;