From d107dd129c02cee69ff880d46219abad7cf4c75d Mon Sep 17 00:00:00 2001 From: Matias Pando Date: Fri, 14 Nov 2014 10:41:05 -0300 Subject: [PATCH] Select last focus wallet --- js/controllers/importProfile.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/js/controllers/importProfile.js b/js/controllers/importProfile.js index 56f91abb7..358259790 100644 --- a/js/controllers/importProfile.js +++ b/js/controllers/importProfile.js @@ -30,16 +30,8 @@ angular.module('copayApp.controllers').controller('ImportProfileController', if (err && !iden) { $scope.error = (err.toString() || '').match('BADSTR') ? 'Bad password or corrupt profile file' : 'Unknown error'; } else { - //simulate an angular form - var data = { - email: { - $modelValue: iden.email - }, - password: { - $modelValue: iden.password - } - } - identityService.open($scope, data); + var firstWallet = iden.getLastFocusedWallet(); + controllerUtils.bindProfile($scope, iden, firstWallet); } }); };