diff --git a/src/app/tools/tankopedia/components/SearchBar.tsx b/src/app/tools/tankopedia/components/SearchBar.tsx index c65f33f22..b7c4a2d2d 100644 --- a/src/app/tools/tankopedia/components/SearchBar.tsx +++ b/src/app/tools/tankopedia/components/SearchBar.tsx @@ -15,6 +15,7 @@ interface SearchBarProps { export function SearchBar({ topResult, onSelect }: SearchBarProps) { const tankFiltersStore = TankFilters.useStore(); + const lastSearch = tankFiltersStore.getState().search; const router = useRouter(); const input = useRef(null); const searching = TankFilters.use((state) => state.searching); @@ -58,6 +59,7 @@ export function SearchBar({ topResult, onSelect }: SearchBarProps) {