From 908344862c8eb9530520e22c87cba36b73b7d468 Mon Sep 17 00:00:00 2001 From: Matias Alejo Garcia Date: Sat, 4 Jun 2016 17:08:08 -0300 Subject: [PATCH] fix add new comment --- src/js/controllers/modals/txDetails.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);