Skip to content

Commit

Permalink
Merge pull request #1386 from brave/panel-create-bug
Browse files Browse the repository at this point in the history
Fixes summary being displayed before enabled
  • Loading branch information
NejcZdovc committed Jan 18, 2019
1 parent 99534f7 commit b1e85dd
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 b1e85dd

Please sign in to comment.