diff --git a/src/components/SearchPlayer.tsx b/src/components/SearchPlayer.tsx index 2f634b2..5adc531 100644 --- a/src/components/SearchPlayer.tsx +++ b/src/components/SearchPlayer.tsx @@ -34,7 +34,7 @@ export default function SearchPlayer() { } // Search by name - const players = await searchByName(search); + const players = await searchByName(encodeURIComponent(search)); if (players == undefined) return; setPlayers(players);