Skip to content

Commit

Permalink
Fixes summary being displayed before enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
NejcZdovc committed Jan 18, 2019
1 parent 0e1ce21 commit 4a2c670
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 4a2c670

Please sign in to comment.