diff --git a/packages/common/src/api/tan-query/useTopTags.ts b/packages/common/src/api/tan-query/useTopTags.ts index e34c7f1c0f6..a990eb381a4 100644 --- a/packages/common/src/api/tan-query/useTopTags.ts +++ b/packages/common/src/api/tan-query/useTopTags.ts @@ -26,13 +26,16 @@ export const useTopTags = ( return useQuery({ queryKey: getTopTagsQueryKey(userId), queryFn: async () => { - const sdk = await audiusSdk() - const { data = [] } = await sdk.users.getTopTrackTags({ - id: Id.parse(userId), - limit - }) - - return data + try { + const sdk = await audiusSdk() + const { data = [] } = await sdk.users.getTopTrackTags({ + id: Id.parse(userId), + limit + }) + return data + } catch { + return [] + } }, ...options, enabled: options?.enabled !== false