Skip to content

Commit

Permalink
[AMSA-chore] hotfix loading logs
Browse files Browse the repository at this point in the history
  • Loading branch information
NaLLiFFuNT committed Apr 17, 2019
1 parent 4013e8e commit f63d440
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,9 @@ export class Store {

@action
async pushLogs (account: AdMobAccount) {
return this.updateAdMobAccountInfo(account);
if (account) {
return this.updateAdMobAccountInfo(account);
}
}

@action
Expand Down Expand Up @@ -310,7 +312,7 @@ export class Store {
}

@action
selectAdMobAccount (newAccount: AdMobAccount) {
selectAdMobAccount (newAccount: AdMobAccount | null) {
set<AppState>(this.state, 'selectedAccount', {
account: newAccount
});
Expand Down

0 comments on commit f63d440

Please sign in to comment.