Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
No Bug: Hide Rewards User Wallets unless compiler flag is used
Browse files Browse the repository at this point in the history
To be reverted in a future PR
  • Loading branch information
kylehickinson committed Jan 16, 2020
1 parent 0a3ac4b commit c03c586
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions BraveRewardsUI/Wallet/WalletViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ extension WalletViewController {
crypto: Strings.walletBalanceType,
dollarValue: state.ledger.usdBalanceString
)
#if REWARDS_USER_WALLET
if let publisher = publisher {
publisherSummaryView.publisherView.setStatus(
publisher.status,
Expand All @@ -665,16 +666,19 @@ extension WalletViewController {
}
self.walletView.headerView.addFundsButton.isHidden = wallet.status != .verified
}
#endif
}

/// Fetch an updated external wallet from ledger if the user isn't in JP
func updateExternalWallet() {
#if REWARDS_USER_WALLET
if Preferences.Rewards.isUsingBAP.value == true { return }

// If we can show Uphold, grab verification status of the wallet
state.ledger.fetchExternalWallet(forType: .uphold) { _ in
self.updateWalletHeader()
}
#endif
}

func setupLedgerObservers() {
Expand Down

0 comments on commit c03c586

Please # to comment.