From a03f1dc2ac25579df30e8cb59d2703110c3e564d Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Wed, 13 Mar 2024 22:37:41 +0000 Subject: lint: Lint and format the entire repo with the new configs --- apps/web/lib/hooks/bookmark-search.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/web/lib/hooks') 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 }; } -- cgit v1.2.3-70-g09d2