From b032de4a62d6cde3c69821a11a670519f75c0ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sat, 29 Jun 2024 12:14:34 -0500 Subject: [PATCH] feat: no default tier --- src/app/tools/tankopedia/components/TankSearch/index.tsx | 3 ++- src/stores/tankopediaFilters.ts | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/tools/tankopedia/components/TankSearch/index.tsx b/src/app/tools/tankopedia/components/TankSearch/index.tsx index c5d9f87f9..fbb7961a9 100644 --- a/src/app/tools/tankopedia/components/TankSearch/index.tsx +++ b/src/app/tools/tankopedia/components/TankSearch/index.tsx @@ -69,7 +69,8 @@ export const TankSearch = memo( (a, b) => awaitedGameDefinitions.nations.indexOf(b.nation) - awaitedGameDefinitions.nations.indexOf(a.nation), - ); + ) + .sort((a, b) => a.tier - b.tier); break; case 'survivability.health': { diff --git a/src/stores/tankopediaFilters.ts b/src/stores/tankopediaFilters.ts index 4d05ace64..0959fb6b8 100644 --- a/src/stores/tankopediaFilters.ts +++ b/src/stores/tankopediaFilters.ts @@ -24,7 +24,6 @@ export const useTankopediaFilters = create()(() => ({ by: 'meta.none', direction: 'descending', }, - tier: 10, searching: false, }));