Merge branch 'rrt/dev' into rrt/testing
This commit is contained in:
commit
58db2737bd
|
@ -39,7 +39,11 @@ export class NavbarComponent {
|
||||||
if (isSignedIn()) {
|
if (isSignedIn()) {
|
||||||
this.api.getUser().subscribe(u => {
|
this.api.getUser().subscribe(u => {
|
||||||
this.user = u;
|
this.user = u;
|
||||||
this.googleAnalyticsService.setUser(this.user.uid);
|
|
||||||
|
if (this.user && this.user.uid) {
|
||||||
|
this.googleAnalyticsService.setUser(this.user.uid);
|
||||||
|
}
|
||||||
|
|
||||||
this._loadNavLinks();
|
this._loadNavLinks();
|
||||||
}, error => {
|
}, error => {
|
||||||
localStorage.removeItem('token');
|
localStorage.removeItem('token');
|
||||||
|
|
Loading…
Reference in New Issue