Skip to content

Commit

Permalink
fix: Properly update username
Browse files Browse the repository at this point in the history
  • Loading branch information
clepski committed Oct 9, 2024
1 parent c289ef9 commit 1f77eb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/compas-open-scd/src/addons/CompasLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,8 @@ export class CompasLayout extends LitElement {
}
);

this.addEventListener('userinfo', this.onUserInfo);
this.onUserInfo = this.onUserInfo.bind(this);
this.host.addEventListener('userinfo', this.onUserInfo);
}

private onUserInfo(event: UserInfoEvent) {
Expand Down

0 comments on commit 1f77eb9

Please sign in to comment.