Skip to content

Commit

Permalink
Merge pull request #1388 from brave/panel-create-bug-59
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 99534f7 + b1e85dd commit 97fceca
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 97fceca

Please sign in to comment.