Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphiiko committed Sep 8, 2024
1 parent 5e4d503 commit 605e1d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src-ui/app/services/vrchat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -694,14 +694,15 @@ export class VRChatService {
this._world.next(context);
break;
}
case 'OnPlayerLeft':
case 'OnPlayerLeft': {
const context = {
...structuredClone(this._world.value),
playerCount: Math.max(this._world.value.playerCount - 1, 0),
};
if (event.displayName === this._user.value?.displayName) context.loaded = false;
this._world.next(context);
break;
}
case 'OnLocationChange':
this._world.next({
...structuredClone(this._world.value),
Expand Down

0 comments on commit 605e1d9

Please sign in to comment.