From bd4897e3ff8899d397ee5cbd3706c20ef91d6994 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Sat, 4 Apr 2026 22:22:15 +0200 Subject: [PATCH] Search fix --- src/components/ModsSection.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/ModsSection.tsx b/src/components/ModsSection.tsx index 1431e79..b301a12 100644 --- a/src/components/ModsSection.tsx +++ b/src/components/ModsSection.tsx @@ -48,7 +48,10 @@ const ModsSection: React.FC = ({ version }) => { setMods(m); } else { const m = await discoverMods(searchQuery); - setMods(m); + if (activeTab === "discover") { + // Fix: If discover mods takes too long and the user switches tabs it glitches + setMods(m); + } } }; loadMods();