diff --git a/README.md b/README.md index 0378ef7..979eb8f 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ With the amazing support of our translators, we've been able to translate Open T |🟢 |❓ Catalan |guillee3 | |🟢 |🇮🇩 Indonesian |erxg | |🟢 |🇮🇳 Hindi |challenger_nova | -|🟢⏳ |🇩🇪 German |benzorich | +|🟢 |🇩🇪 German |benzorich | |🟢⏳ |🇪🇸 Spanish |redactado & josuens | |🟢⏳ |🇫🇷 French |guillee.3 | |🟢⏳ |🇵🇹 Portuguese |quiradon | diff --git a/src/core/api/modules/responder.ts b/src/core/api/modules/responder.ts index dbe78ea..ce3bebe 100644 --- a/src/core/api/modules/responder.ts +++ b/src/core/api/modules/responder.ts @@ -1389,7 +1389,7 @@ export class ODAutocompleteResponderInstance { else return raw }) - const filteredChoices = newChoices.filter((choice) => choice.name.startsWith(this.target.value) || choice.value.toString().startsWith(this.target.value)) + const filteredChoices = newChoices.filter((choice) => choice.name.startsWith(this.target.value) || choice.value.toString().startsWith(this.target.value)).slice(0,25) return await this.autocomplete(filteredChoices) } }