diff --git a/assets/js/controllers/request.controller.js b/assets/js/controllers/request.controller.js index d19ede90d0..f6bafb28bb 100644 --- a/assets/js/controllers/request.controller.js +++ b/assets/js/controllers/request.controller.js @@ -34,8 +34,8 @@ function RequestCtrl($scope, Wallet, Alerts, currency, $uibModalInstance, $log, if (!address.archived) { $scope.destinations.push(angular.copy(address)); - if ((destination != null) && (destination.address != null) && destination.address === addr.address) { - $scope.fields.to = addr; + if ((destination != null) && (destination.address != null) && destination.address === address.address) { + $scope.fields.to = address; } } }