diff --git a/src/js/controllers/activity.js b/src/js/controllers/activity.js index 025a4b062..696730bff 100644 --- a/src/js/controllers/activity.js +++ b/src/js/controllers/activity.js @@ -25,7 +25,7 @@ angular.module('copayApp.controllers').controller('activityController', }; $scope.openNotificationModal = function(n) { - if (!n.txpId && n.txid) { + if (n.txid) { openTxModal(n); } else { var txp = lodash.find($scope.txps, { @@ -34,7 +34,7 @@ angular.module('copayApp.controllers').controller('activityController', if (txp) txpModalService.open(txp); else { $log.warn('No txp found'); - return popupService.showAlert(gettextCatalog.getString('Transaction not found'), null); + return popupService.showAlert(null, gettextCatalog.getString('Transaction not found')); } } }; @@ -53,7 +53,7 @@ angular.module('copayApp.controllers').controller('activityController', if (!tx) { $log.warn('No tx found'); - return popupService.showAlert(gettextCatalog.getString('Transaction not found'), null); + return popupService.showAlert(null, gettextCatalog.getString('Transaction not found')); } $scope.wallet = wallet; diff --git a/src/js/controllers/tab-home.js b/src/js/controllers/tab-home.js index 12d7547c5..95c0908f3 100644 --- a/src/js/controllers/tab-home.js +++ b/src/js/controllers/tab-home.js @@ -17,7 +17,7 @@ angular.module('copayApp.controllers').controller('tabHomeController', }); $scope.openNotificationModal = function(n) { - if (!n.txpId && n.txid) { + if (n.txid) { openTxModal(n); } else { var txp = lodash.find($scope.txps, { @@ -26,7 +26,7 @@ angular.module('copayApp.controllers').controller('tabHomeController', if (txp) txpModalService.open(txp); else { $log.warn('No txp found'); - return popupService.showAlert(gettextCatalog.getString('Transaction not found'), null); + return popupService.showAlert(null, gettextCatalog.getString('Transaction not found')); } } }; @@ -45,7 +45,7 @@ angular.module('copayApp.controllers').controller('tabHomeController', if (!tx) { $log.warn('No tx found'); - return popupService.showAlert(gettextCatalog.getString('Transaction not found'), null); + return popupService.showAlert(null, gettextCatalog.getString('Transaction not found')); } $scope.wallet = wallet;