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:
babyboucher
2026-05-05 23:15:28 -05:00
committed by evanpelle
parent 7f9b63a24c
commit 94bab78d24
2 changed files with 1 additions and 15 deletions
+1 -1
View File
@@ -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();