From 75c223375fd6d42f4209674a4d65ed58e27b15c8 Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 20 Oct 2023 21:59:04 +0100 Subject: [PATCH] fix spaces in search --- src/components/SearchPlayer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);