Skip to content

Commit 1f77eb9

Browse files
committed
fix: Properly update username
1 parent c289ef9 commit 1f77eb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/compas-open-scd/src/addons/CompasLayout.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,8 @@ export class CompasLayout extends LitElement {
413413
}
414414
);
415415

416-
this.addEventListener('userinfo', this.onUserInfo);
416+
this.onUserInfo = this.onUserInfo.bind(this);
417+
this.host.addEventListener('userinfo', this.onUserInfo);
417418
}
418419

419420
private onUserInfo(event: UserInfoEvent) {

0 commit comments

Comments
 (0)