Skip to content

Commit

Permalink
Uplift of #5551 (squashed) to beta
Browse files Browse the repository at this point in the history
  • Loading branch information
brave-browser-releases committed May 14, 2020
1 parent 2b34b9d commit adefa2d
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "bat/ledger/internal/uphold/uphold_authorization.h"
#include "bat/ledger/internal/uphold/uphold_card.h"
#include "bat/ledger/internal/uphold/uphold_util.h"
#include "bat/ledger/internal/wallet/wallet_util.h"
#include "bat/ledger/internal/uphold/uphold_transfer.h"
#include "bat/ledger/internal/uphold/uphold_wallet.h"
#include "bat/ledger/internal/ledger_impl.h"
Expand Down Expand Up @@ -259,14 +260,7 @@ void Uphold::OnDisconectWallet(
return;
}

if (wallet->status == ledger::WalletStatus::VERIFIED) {
wallet->status = ledger::WalletStatus::DISCONNECTED_VERIFIED;
} else if (wallet->status == ledger::WalletStatus::CONNECTED ||
wallet->status == ledger::WalletStatus::NOT_CONNECTED) {
wallet->status = ledger::WalletStatus::DISCONNECTED_NOT_VERIFIED;
}

wallet->token = "";
wallet = braveledger_wallet::ResetWallet(std::move(wallet));

ledger_->ShowNotification(
"wallet_disconnected",
Expand Down

0 comments on commit adefa2d

Please sign in to comment.