aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/app.component.ts
diff options
context:
space:
mode:
authorOgnjen Cirkovic <ciraboxkg@gmail.com>2022-05-04 23:40:12 +0000
committerOgnjen Cirkovic <ciraboxkg@gmail.com>2022-05-04 23:40:12 +0000
commitc12f31b70fbce8542c2d4e23b5f003d7488bb03f (patch)
treecb64f2775335cdd856e81ec9e8ba0bed93fa0985 /frontend/src/app/app.component.ts
parentbdabccc6e8f4d35085a4defe61c579ea0002f798 (diff)
parent7d7c18239582f8dcc5337a573c02033c0f5c3194 (diff)
Merge branch 'Guest-Koristik-Ispravka-FrontEnd' into 'redesign'
Merge See merge request igrannonica/neuronstellar!28
Diffstat (limited to 'frontend/src/app/app.component.ts')
-rw-r--r--frontend/src/app/app.component.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/src/app/app.component.ts b/frontend/src/app/app.component.ts
index f9bc2726..e301b46f 100644
--- a/frontend/src/app/app.component.ts
+++ b/frontend/src/app/app.component.ts
@@ -40,7 +40,8 @@ export class AppComponent implements OnInit, AfterViewInit {
}
});
if (!this.authService.isAuthenticated()) {
- this.authService.addGuestToken();
+ if(!this.authService.alreadyGuest())
+ this.authService.addGuestToken();
}
this.signalRService.startConnection();
//this.startHttpRequest();