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

Commit

Permalink
feat(BuySell): more countries
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjors committed Sep 16, 2016
1 parent a913b63 commit 93a83b0
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion assets/js/controllers/walletNavigation.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,40 @@ function WalletNavigationCtrl ($rootScope, $scope, Wallet, MyWallet, Alerts, Sec

let accountInfo = MyWallet.wallet && MyWallet.wallet.accountInfo;
$scope.isUserInvited = accountInfo && accountInfo.invited;
$scope.isUserWhitelisted = accountInfo && ['GB', 'DK'].indexOf(accountInfo.countryCodeGuess) > -1;
$scope.isUserWhitelisted = accountInfo && [
'GB',
'DK',
'BE',
'BG',
'CZ',
'DE',
'EE',
'IE',
'EL',
'ES',
'FR',
'HR',
'IT',
'CY',
'LV',
'LT',
'LU',
'HU',
'MT',
'NL',
'AT',
'PL',
'PT',
'RO',
'SI',
'SK',
'FI',
'SE',
'NO',
'CH',
'LI',
'IS'
].indexOf(accountInfo.countryCodeGuess) > -1;
// debug uninvited user and whitelisted
// $scope.isUserInvited = false;
// $scope.isUserWhitelisted = true;
Expand Down

0 comments on commit 93a83b0

Please sign in to comment.