Skip to content

Commit bb36d71

Browse files
committed
fix: use optional unwrap
1 parent 20a5743 commit bb36d71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/[locale]/dapps/_components/dapps.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ const DappsPage = () => {
294294
)
295295
const explore = useRef<HTMLDivElement>(null)
296296

297-
const queryParamCategories = searchParams.get("category") || ""
297+
const queryParamCategories = searchParams?.get("category") || ""
298298
useEffect(() => {
299299
const selectedCategory = queryParamCategories
300300
? (queryParamCategories.split(",")[0] as CategoryType)

0 commit comments

Comments
 (0)