Skip to content

Commit

Permalink
fix(GuildSearchBar): remove buggy useEffect
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Jul 12, 2024
1 parent d08774c commit 5837868
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/app/explorer/_components/GuildSearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ export const GuildSearchBar = () => {
)
)

/**
* ?order=FEATURED is the default order, so added this early return to avoid navigating from /explorer to /explorer?order=FEATURED after the initial page load
*/
if (!searchParams?.get("order") && !search) return

router.push(`${pathname}?${newSearchParams.toString()}`, {
scroll: false,
})
Expand Down

0 comments on commit 5837868

Please sign in to comment.