Merge pull request #3376 from gabrielbazan7/fix/initialTransactionMessage

fix message in mobile
This commit is contained in:
Gustavo Maximiliano Cortez 2015-11-02 09:44:21 -03:00
commit 621ebc6b4d
1 changed files with 7 additions and 3 deletions

View File

@ -757,14 +757,18 @@ angular.module('copayApp.controllers').controller('indexController', function($r
if (err) return cb(err);
var localTxs = [];
if (!txs) {
self.showWaitingSign = true;
return cb(null, localTxs);
}
try {
localTxs = JSON.parse(txs);
} catch (ex) {
$log.warn(ex);
}
if (!localTxs) self.showWaitingSign = true;
return cb(null, self.removeSoftConfirmedTx(localTxs));
});
}
@ -1283,4 +1287,4 @@ angular.module('copayApp.controllers').controller('indexController', function($r
self.setFocusedWallet();
});
});
});
});