Fix messages in txp modal

This commit is contained in:
Gustavo Maximiliano Cortez 2015-09-03 17:34:42 -03:00
commit 3a4df0c6c9
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
2 changed files with 9 additions and 10 deletions

View file

@ -187,7 +187,7 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
fc.getTx($scope.tx.id, function(err, tx) {
if (err) {
if (err.code && err.code == 'BADREQUEST' &&
if (err.code && err.code == 'TX_NOT_FOUND' &&
(eventName == 'transactionProposalRemoved' || eventName == 'TxProposalRemoved')) {
$scope.tx.removed = true;
$scope.tx.canBeRemoved = false;