diff --git a/src/client/FlagInputModal.ts b/src/client/FlagInputModal.ts index 84da9f855..0be8ccf52 100644 --- a/src/client/FlagInputModal.ts +++ b/src/client/FlagInputModal.ts @@ -34,9 +34,7 @@ export class FlagInputModal extends LitElement { class="flex flex-wrap justify-evenly gap-[1rem] overflow-y-auto overflow-x-hidden h-[90%]" > ${this.isModalOpen ? Countries.filter( - (country) => - country.name.toLowerCase().includes(this.search.toLowerCase()) || - country.code.toLowerCase().includes(this.search.toLowerCase()), + (country) => !country.restricted && this.includedInSearch(country), ).map( (country) => html`