mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
fix: region based player search
This commit is contained in:
1 parent
dfe1e37592
commit
1081e836f5
1 file changed
+1
-1
@@ -95,7 +95,7 @@ export default function Page() {
|
|||||||
if (trimmedSearch) {
|
if (trimmedSearch) {
|
||||||
const encodedSearch = encodeURIComponent(trimmedSearch);
|
const encodedSearch = encodeURIComponent(trimmedSearch);
|
||||||
const accountList = await fetchBlitz<AccountList>(
|
const accountList = await fetchBlitz<AccountList>(
|
||||||
`https://api.wotblitz.com/wotb/account/list/?application_id=${WARGAMING_APPLICATION_ID}&search=${encodedSearch}&limit=100`,
|
`https://api.wotblitz.${region}/wotb/account/list/?application_id=${WARGAMING_APPLICATION_ID}&search=${encodedSearch}&limit=100`,
|
||||||
);
|
);
|
||||||
|
|
||||||
setSearchResults(
|
setSearchResults(
|
||||||
|
|||||||
Reference in new issue
Block a user