Skip to content

Commit 590ba34

Browse files
authored
Fixed: error when loading subscriptions without user signed in (#2375)
1 parent 8abd865 commit 590ba34

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/users/subscriptions/ko/runtime/subscriptions.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ export class Subscriptions {
5454

5555
private async loadUser(): Promise<void> {
5656
this.userId = await this.usersService.ensureSignedIn();
57+
if(!this.userId){
58+
return;
59+
}
60+
5761
await this.loadSubscriptions();
5862
}
5963

0 commit comments

Comments
 (0)