check if peerActions is defined

This commit is contained in:
Gustavo Maximiliano Cortez 2014-10-31 14:01:31 -03:00
parent 653db8f320
commit 989447364f
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ angular.module('copayApp.controllers').controller('HistoryController',
_.each(res, function (r) {
r.ts = r.minedTs || r.sentTs;
if (r.action === 'sent') {
if (r.action === 'sent' && r.peerActions) {
r.actionList = controllerUtils.getActionList(r.peerActions);
}
});