Fix location share
This commit is contained in:
parent
950afd5d10
commit
77f74ccb08
2 changed files with 4 additions and 2 deletions
|
|
@ -67,7 +67,9 @@ const getPlayer = (userId: string): IPlayer => {
|
|||
};
|
||||
|
||||
const getPlayerByName = (name: string): IPlayer => {
|
||||
const player = state.game.players.find((player) => player.name === name);
|
||||
const player = state.game.players.find(
|
||||
(player) => player.name.toLowerCase() === name.toLowerCase(),
|
||||
);
|
||||
if (player) {
|
||||
return player;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue