From a441e34d0427c65cc68bc9cf66a239fbb37dc0d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lud=C4=9Bk=20Nov=C3=BD?= <13610612+ludeknovy@users.noreply.github.com> Date: Wed, 2 Oct 2024 10:45:17 +0200 Subject: [PATCH] Fix isAnonymous flag assignment on token check, setting true as a default value --- src/app/item-detail/item-detail.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/item-detail/item-detail.component.ts b/src/app/item-detail/item-detail.component.ts index 39a0d90..7c4c73f 100644 --- a/src/app/item-detail/item-detail.component.ts +++ b/src/app/item-detail/item-detail.component.ts @@ -75,7 +75,7 @@ export class ItemDetailComponent implements OnInit, OnDestroy { itemParams; Math: any; token: string; - isAnonymous = false; + isAnonymous = true; toggleThroughputBandFlag = false; chartLines; activeId = 1; @@ -128,8 +128,8 @@ export class ItemDetailComponent implements OnInit, OnDestroy { ).subscribe(_ => this.itemParams = _); this.route.queryParams.subscribe(_ => { this.token = _.token; - if (this.token) { - this.isAnonymous = true; + if (!this.token) { + this.isAnonymous = false; } }); this.itemsService.fetchItemDetail(