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 });