diff --git a/src/components/@shared/atoms/Tags.tsx b/src/components/@shared/atoms/Tags.tsx
index 686789646..1a29a5f1d 100644
--- a/src/components/@shared/atoms/Tags.tsx
+++ b/src/components/@shared/atoms/Tags.tsx
@@ -15,7 +15,9 @@ const Tag = ({ tag, noLinks }: { tag: string; noLinks?: boolean }) => {
return noLinks ? (
{tag}
) : (
-
+
{tag}
diff --git a/src/components/Search/index.tsx b/src/components/Search/index.tsx
index 1c93b0aaf..7979e3a9a 100644
--- a/src/components/Search/index.tsx
+++ b/src/components/Search/index.tsx
@@ -61,8 +61,9 @@ export default function SearchPage({
setTotalResults(undefined)
const queryResult = await getResults(parsed, chainIds, newCancelToken())
setQueryResult(queryResult)
- setTotalResults(queryResult.totalResults)
- setTotalPagesNumber(queryResult.totalPages)
+
+ setTotalResults(queryResult?.totalResults || 0)
+ setTotalPagesNumber(queryResult?.totalPages || 0)
setLoading(false)
},
[newCancelToken, setTotalPagesNumber, setTotalResults]