Skip to content

Commit

Permalink
Uplift of #16928 (squashed) to beta
Browse files Browse the repository at this point in the history
  • Loading branch information
brave-builds committed Jan 31, 2023
1 parent 934c520 commit 028acbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/brave_wallet/renderer/js_solana_provider.cc
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ void JSSolanaProvider::AccountChangedEvent(
}

void JSSolanaProvider::DidFinishLoad() {
if (wallet_standard_loaded_) {
if (wallet_standard_loaded_ || !EnsureConnected()) {
return;
}
solana_provider_->IsSolanaKeyringCreated(
Expand Down Expand Up @@ -993,7 +993,7 @@ v8::Local<v8::Value> JSSolanaProvider::CreateTransaction(
}

void JSSolanaProvider::OnIsSolanaKeyringCreated(bool created) {
if (!created) {
if (!created || !render_frame()) {
return;
}
v8::Isolate* isolate = blink::MainThreadIsolate();
Expand Down

0 comments on commit 028acbf

Please sign in to comment.