From b1e85dd1939e23aea6709089ecc9cfd62018dda7 Mon Sep 17 00:00:00 2001 From: Nejc Zdovc Date: Fri, 18 Jan 2019 14:59:41 +0100 Subject: [PATCH] Merge pull request #1386 from brave/panel-create-bug Fixes summary being displayed before enabled --- .../brave_rewards/browser/extension_rewards_service_observer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/brave_rewards/browser/extension_rewards_service_observer.cc b/components/brave_rewards/browser/extension_rewards_service_observer.cc index cca5d37f56c1..821562835e30 100644 --- a/components/brave_rewards/browser/extension_rewards_service_observer.cc +++ b/components/brave_rewards/browser/extension_rewards_service_observer.cc @@ -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 args(new base::ListValue()); std::unique_ptr event(new extensions::Event( extensions::events::BRAVE_WALLET_CREATED,