fix add new comment
This commit is contained in:
parent
761a4ff996
commit
908344862c
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue