diff --git a/Assets/_Scripts/UI/LobbyInstance.cs b/Assets/_Scripts/UI/LobbyInstance.cs index cfedec7..b451d9b 100644 --- a/Assets/_Scripts/UI/LobbyInstance.cs +++ b/Assets/_Scripts/UI/LobbyInstance.cs @@ -247,7 +247,7 @@ private async void CallbacksOnLobbyChanged(ILobbyChanges changes) public async Task KickPlayer(string playerId) { - if (playerId == AuthenticationService.Instance.PlayerId) + if (Lobby.HostId == AuthenticationService.Instance.PlayerId && Lobby.HostId == playerId) { await LobbyService.Instance.DeleteLobbyAsync(Lobby.Id); return;