fix: null check for useSearchParams() (#19175)

This commit is contained in:
Eunjae Lee authored and GitHub committed 2025-02-07 15:19:15 +00:00
1 parent 87f02f5588
commit 5d2c8a49ba
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -6,8 +6,8 @@ export default function Index() {
const router = useRouter();
const searchParams = useSearchParams();
const pathname = usePathname();
const appSlug = searchParams.get("appSlug");
const userId = searchParams.get("userId");
const appSlug = searchParams?.get("appSlug");
const userId = searchParams?.get("userId");
useEffect(() => {
let isRedirectNeeded = false;