mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 19:49:50 +02:00
fix: clear filters no longer shows up after searching and clearing the search bar
This commit is contained in:
1 parent
17755641a1
commit
4bc255a624
3 files changed
+5
-15
No files matched your search
@@ -60,7 +60,7 @@ export const TankSearch = memo<TankSearchProps>(
|
||||
const tankFilters = useStore($tankFilters);
|
||||
const tankopediaSort = useStore($tankopediaSort);
|
||||
const tanksFiltered = useMemo(() => {
|
||||
if (tankFilters.search === undefined) {
|
||||
if (tankFilters.search === null) {
|
||||
const filtered = awaitedTanksDefinitionsArray.filter((tank) =>
|
||||
filterTank(tankFilters, tank),
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user