Skip to content
Snippets Groups Projects
Commit 434d0c57 authored by Lukas Haase's avatar Lukas Haase
Browse files

fix active-user only showing 1 bug

parent 54c7d997
Branches
Tags
No related merge requests found
......@@ -22,7 +22,9 @@ export class ActiveUserComponent implements OnInit{
ngOnInit(): void {
this.activeUserService.getActiveUser(this.room).subscribe(i=>{
this.activeUser=i.length;
if(i&&i.length>0){
this.activeUser=i[0];
}
});
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment