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

Commit

Permalink
chore(BuySell): handle disabling partners separately
Browse files Browse the repository at this point in the history
  • Loading branch information
plondon committed Apr 19, 2018
1 parent 4e892c2 commit 38afc90
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions assets/js/controllers/wallet.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,7 @@ function WalletCtrl ($scope, $rootScope, Wallet, $uibModal, $timeout, Alerts, $i
} else {
switch (toState.name) {
case 'wallet.common.buy-sell': return (
featureDisabledWhen($scope.buySellDisabled, $scope.buySellDisabledReason) ||
ensureMetadataReady() ||
featureDisabledWhen(wallet.external.coinify.user && coinify.disabled, coinify.disabledReason) ||
featureDisabledWhen(wallet.external.unocoin.user && unocoin.disabled, unocoin.disabledReason) ||
featureDisabledWhen(wallet.external.sfox.user && sfox.disabled, sfox.disabledReason)
featureDisabledWhen($scope.buySellDisabled, $scope.buySellDisabledReason)
);
case 'wallet.common.buy-sell.coinify': return (
featureDisabledWhen(coinify.disabled, coinify.disabledReason)
Expand Down

0 comments on commit 38afc90

Please sign in to comment.