Skip to content

Commit 2015290

Browse files
committed
Cloud: only fetch settings when the session is available
1 parent 8d94cf8 commit 2015290

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/cloud/src/SettingsService.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ export class SettingsService {
4242
this.removeSettings()
4343
}
4444

45-
this.authService.on("attempting-session", () => {
46-
this.timer.start()
47-
})
48-
4945
this.authService.on("active-session", () => {
5046
this.timer.start()
5147
})
@@ -55,7 +51,7 @@ export class SettingsService {
5551
this.removeSettings()
5652
})
5753

58-
if (this.authService.hasOrIsAcquiringActiveSession()) {
54+
if (this.authService.hasActiveSession()) {
5955
this.timer.start()
6056
}
6157
}

0 commit comments

Comments
 (0)