From 477fe1728f2143ef9057a14c926c5afa43863883 Mon Sep 17 00:00:00 2001 From: Ludek Novy <13610612+ludeknovy@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:18:56 +0200 Subject: [PATCH] Fix isAnonymous flag assignment on token check, setting true as a default value (#424) --- 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(