diff --git a/src/js/controllers/modals/txDetails.js b/src/js/controllers/modals/txDetails.js index 3b4704471..38dda5d08 100644 --- a/src/js/controllers/modals/txDetails.js +++ b/src/js/controllers/modals/txDetails.js @@ -14,7 +14,7 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio $scope.isShared = fc.credentials.n > 1; $scope.showCommentPopup = function() { $scope.data = { - comment: $scope.btx.note.body + comment: $scope.btx.note ? $scope.btx.note.body : '', }; var commentPopup = $ionicPopup.show({ @@ -37,6 +37,7 @@ angular.module('copayApp.controllers').controller('txDetailsController', functio return; } // This is only to refresh the current screen data + $scope.btx.note = {}; $scope.btx.note.body = $scope.data.comment; $scope.btx.note.editedByName = fc.credentials.copayerName; $scope.btx.note.editedOn = Math.floor(Date.now() / 1000);