mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-09 16:48:06 +00:00
Fix off by one error (#3827)
## Description: Currently it is impossible to search for 2 letter clan tags (UN, FR, EU), this is because of an off by one error present in the API ## Please complete the following: - [X] I have added screenshots for all UI updates - [X] I process any text displayed to the user through translateText() and I've added it to the en.json file - [X] I have added relevant tests to the test directory - [X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: Babyboucher
This commit is contained in:
@@ -109,7 +109,7 @@ export async function fetchClans(
|
||||
const params = new URLSearchParams();
|
||||
params.set("page", String(page));
|
||||
params.set("limit", String(limit));
|
||||
if (search && search.length >= 3) params.set("search", search);
|
||||
if (search && search.length >= 2) params.set("search", search);
|
||||
const res = await clanFetch(`/clans?${params}`);
|
||||
if (!res.ok) return false;
|
||||
const json = await res.json();
|
||||
|
||||
Reference in New Issue
Block a user