Skip to content
This repository has been archived by the owner on Oct 8, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1426 from blockchain/sfox-verification-redo
Browse files Browse the repository at this point in the history
Sfox Verification Redo
  • Loading branch information
plondon authored Jan 10, 2018
2 parents e51f18b + bfcbf5f commit 8be65a1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions assets/js/controllers/sfox/sfoxLink.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ angular
function SfoxLinkController ($scope, AngularHelper, $q, $sce, $timeout, sfox, modals, Env, $window) {
let exchange = $scope.vm.exchange;
let accounts = $scope.vm.accounts;
if (sfox.activeAccount) $scope.vm.close(true);

Env.then(env => {
$scope.plaidUrl = $sce.trustAsResourceUrl(`${env.walletHelperDomain}/wallet-helper/plaid/#/key/${env.partners.sfox.plaid}/env/${ env.partners.sfox.plaidEnv}`);
Expand Down
2 changes: 1 addition & 1 deletion assets/js/controllers/sfox/sfoxUpload.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function SfoxUploadController (AngularHelper, Env, $scope, $q, state, $http, sfo
if (level === 'pending' && !required_docs[0]) complete = true;

$scope.onUploadStep = initialUploadStep += 1;
complete && $scope.vm.goTo('link');
complete && $scope.vm.goTo(sfox.determineStep(exchange));
};

AngularHelper.installLock.call($scope);
Expand Down
4 changes: 2 additions & 2 deletions assets/js/services/sfox.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function sfox ($q, MyWallet, Alerts, modals, Env, Exchange, currency, localStora
return canTrade && isSFOXCountryState && MyWallet.wallet.hdwallet.defaultAccount.balance > 0;
}

function determineStep (exchange, accounts) {
function determineStep (exchange) {
let profile = exchange.profile;
if (!profile) {
return 'create';
Expand All @@ -125,7 +125,7 @@ function sfox ($q, MyWallet, Alerts, modals, Env, Exchange, currency, localStora
reason: service.sellReason,
isDisabled: !service.userCanSell,
launchOptions: service.sellLaunchOptions,
verificationRequired: !service.activeAccount
verificationRequired: !service.verified || !service.activeAccount
};
}

Expand Down

0 comments on commit 8be65a1

Please sign in to comment.