diff options
| author | MohamedBassem <me@mbassem.com> | 2024-03-13 22:37:41 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2024-03-14 16:40:45 +0000 |
| commit | a03f1dc2ac25579df30e8cb59d2703110c3e564d (patch) | |
| tree | 59315e73cd83dc391660071c70752cf23989b3da /apps/web/lib/hooks/bookmark-search.ts | |
| parent | 04572a8e5081b1e4871e273cde9dbaaa44c52fe0 (diff) | |
| download | karakeep-a03f1dc2ac25579df30e8cb59d2703110c3e564d.tar.zst | |
lint: Lint and format the entire repo with the new configs
Diffstat (limited to 'apps/web/lib/hooks/bookmark-search.ts')
| -rw-r--r-- | apps/web/lib/hooks/bookmark-search.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/web/lib/hooks/bookmark-search.ts b/apps/web/lib/hooks/bookmark-search.ts index 738e1bd8..1971e79e 100644 --- a/apps/web/lib/hooks/bookmark-search.ts +++ b/apps/web/lib/hooks/bookmark-search.ts @@ -1,11 +1,11 @@ import { useEffect, useState } from "react"; -import { api } from "@/lib/trpc"; import { useRouter, useSearchParams } from "next/navigation"; +import { api } from "@/lib/trpc"; import { keepPreviousData } from "@tanstack/react-query"; function useSearchQuery() { const searchParams = useSearchParams(); - const searchQuery = searchParams.get("q") || ""; + const searchQuery = searchParams.get("q") ?? ""; return { searchQuery }; } |
