Skip to content

Commit

Permalink
Fix isAnonymous flag assignment on token check, setting true as a def…
Browse files Browse the repository at this point in the history
…ault value
  • Loading branch information
ludeknovy committed Oct 2, 2024
1 parent 2b69fb6 commit a441e34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/item-detail/item-detail.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class ItemDetailComponent implements OnInit, OnDestroy {
itemParams;
Math: any;
token: string;
isAnonymous = false;
isAnonymous = true;
toggleThroughputBandFlag = false;
chartLines;
activeId = 1;
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit a441e34

Please sign in to comment.