From f63d4401bbd9825b92ab2c907bf4823084606ca6 Mon Sep 17 00:00:00 2001 From: Alexey Nalivaiko Date: Wed, 17 Apr 2019 17:00:53 +0300 Subject: [PATCH] [AMSA-chore] hotfix loading logs --- src/core/store.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/store.ts b/src/core/store.ts index a221fe6..f5b9d39 100644 --- a/src/core/store.ts +++ b/src/core/store.ts @@ -203,7 +203,9 @@ export class Store { @action async pushLogs (account: AdMobAccount) { - return this.updateAdMobAccountInfo(account); + if (account) { + return this.updateAdMobAccountInfo(account); + } } @action @@ -310,7 +312,7 @@ export class Store { } @action - selectAdMobAccount (newAccount: AdMobAccount) { + selectAdMobAccount (newAccount: AdMobAccount | null) { set(this.state, 'selectedAccount', { account: newAccount });