Merge pull request #6252 from brave/card-pending
Do not create card if pending status
This commit is contained in:
@@ -98,12 +98,14 @@ void UpholdWallet::OnGenerate(
|
||||
|
||||
if (user.status != UserStatus::OK) {
|
||||
wallet_ptr->status = ledger::WalletStatus::PENDING;
|
||||
} else {
|
||||
wallet_ptr->status = GetNewStatus(wallet_ptr->status, user);
|
||||
}
|
||||
|
||||
wallet_ptr->status = GetNewStatus(wallet_ptr->status, user);
|
||||
ledger_->SaveExternalWallet(ledger::kWalletUphold, wallet_ptr->Clone());
|
||||
|
||||
if (wallet_ptr->address.empty()) {
|
||||
if (wallet_ptr->status != ledger::WalletStatus::PENDING &&
|
||||
wallet_ptr->address.empty()) {
|
||||
auto card_callback = std::bind(&UpholdWallet::OnCreateCard,
|
||||
this,
|
||||
_1,
|
||||
|
||||
Reference in New Issue
Block a user