From 0c2877d42f32a4e535c5d34e56e71a9d5db309f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Wed, 28 Aug 2024 18:00:30 -0500 Subject: [PATCH] fix: sort actually sorts now? woah --- src/app/tools/tankopedia/components/TankSearch/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/tools/tankopedia/components/TankSearch/index.tsx b/src/app/tools/tankopedia/components/TankSearch/index.tsx index 43437dc6e..c55c25179 100644 --- a/src/app/tools/tankopedia/components/TankSearch/index.tsx +++ b/src/app/tools/tankopedia/components/TankSearch/index.tsx @@ -382,7 +382,7 @@ export const TankSearch = memo( ); return searchedTanks; } - }, [filters]); + }, [filters, sort]); const [loadedRows, setLoadedRows] = useState(DEFAULT_LOADED_CARDS); const tanks = tanksFiltered.slice(0, loadedRows);