From 590ba34b62506361c282f58d0361dea4651d3ec9 Mon Sep 17 00:00:00 2001 From: malincrist <92857141+malincrist@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:40:25 +0100 Subject: [PATCH] Fixed: error when loading subscriptions without user signed in (#2375) --- .../users/subscriptions/ko/runtime/subscriptions.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/users/subscriptions/ko/runtime/subscriptions.ts b/src/components/users/subscriptions/ko/runtime/subscriptions.ts index 37a950fe4..85889946c 100644 --- a/src/components/users/subscriptions/ko/runtime/subscriptions.ts +++ b/src/components/users/subscriptions/ko/runtime/subscriptions.ts @@ -54,6 +54,10 @@ export class Subscriptions { private async loadUser(): Promise { this.userId = await this.usersService.ensureSignedIn(); + if(!this.userId){ + return; + } + await this.loadSubscriptions(); }