remove unused variable
This commit is contained in:
parent
5b8b94ec19
commit
a298d7f019
1 changed files with 2 additions and 4 deletions
|
|
@ -8,7 +8,6 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
var reader = new FileReader();
|
||||
var defaults = configService.getDefaults();
|
||||
var errors = bwcService.getErrors();
|
||||
$scope.dataFromQR = null;
|
||||
$scope.bwsurl = defaults.bws.url;
|
||||
$scope.derivationPath = derivationPathHelper.default;
|
||||
$scope.account = 1;
|
||||
|
|
@ -36,7 +35,6 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
$scope.processWalletInfo = function(code) {
|
||||
if (!code) return;
|
||||
|
||||
$scope.dataFromQR = null;
|
||||
$scope.importErr = false;
|
||||
$scope.error = null;
|
||||
var parsedCode = code.split('|');
|
||||
|
|
@ -62,7 +60,7 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
$scope.testnetEnabled = info.network == 'testnet' ? true : false;
|
||||
|
||||
$timeout(function() {
|
||||
$scope.words = $scope.dataFromQR = info.data;
|
||||
$scope.words = info.data;
|
||||
$rootScope.$apply();
|
||||
}, 1);
|
||||
};
|
||||
|
|
@ -251,7 +249,7 @@ angular.module('copayApp.controllers').controller('importController',
|
|||
opts.networkName = pathData.networkName;
|
||||
opts.derivationStrategy = pathData.derivationStrategy;
|
||||
|
||||
var words = form.words.$modelValue || $scope.dataFromQR;
|
||||
var words = form.words.$modelValue || null;
|
||||
$scope.error = null;
|
||||
|
||||
if (!words) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue