Commit e169b919 authored by Ben Hayward's avatar Ben Hayward

Noticed error

1 merge request!628[Sprint/QuietQuail](fix): Avatar changing forms now change avatar without refresh of components
Pipeline #94191106 failed with stages
in 48 minutes and 38 seconds
......@@ -20,11 +20,13 @@ export class UserAvatarService {
this.init();
// Subscribe to loggedIn$ and on login, update src$.
this.loggedIn$ = this.session.loggedinEmitter.subscribe(is => {
if (is) {
this.src$.next(this.getSrc());
}
});
if (this.session.loggedinEmitter) {
this.loggedIn$ = this.session.loggedinEmitter.subscribe(is => {
if (is) {
this.src$.next(this.getSrc());
}
});
}
}
/**
......
Please register or to comment