fix empty csv

This commit is contained in:
Matias Alejo Garcia 2016-06-07 10:44:35 -03:00
parent 14207dc771
commit 43194559d2
No known key found for this signature in database
GPG Key ID: 02470DB551277AB3
1 changed files with 1 additions and 1 deletions

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;