Skip to content

Commit

Permalink
Merge pull request #1387 from brave/panel-create-bug-60
Browse files Browse the repository at this point in the history
Fixes summary being displayed before enabled
  • Loading branch information
Jason Sadler authored Jan 18, 2019
2 parents 764481c + dc9cc54 commit 2f0b58f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void ExtensionRewardsServiceObserver::OnWalletInitialized(
int error_code) {
extensions::EventRouter* event_router =
extensions::EventRouter::Get(profile_);
if (event_router) {
if (event_router && error_code == 0) {
std::unique_ptr<base::ListValue> args(new base::ListValue());
std::unique_ptr<extensions::Event> event(new extensions::Event(
extensions::events::BRAVE_WALLET_CREATED,
Expand Down

0 comments on commit 2f0b58f

Please sign in to comment.