From 3e299e213656d7a092a36bd4e1012ae0191f1a0d Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Thu, 23 Jan 2025 10:07:21 +0100 Subject: [PATCH] fix: early return causing crash --- components/home/ScrollingCollectionList.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/home/ScrollingCollectionList.tsx b/components/home/ScrollingCollectionList.tsx index 6b4ef40c..06f5a057 100644 --- a/components/home/ScrollingCollectionList.tsx +++ b/components/home/ScrollingCollectionList.tsx @@ -40,11 +40,10 @@ export const ScrollingCollectionList: React.FC = ({ refetchOnReconnect: true, }); - if (disabled || !title) return null; + const { t } = useTranslation(); if (hideIfEmpty === true && data?.length === 0) return null; - - const { t } = useTranslation(); + if (disabled || !title) return null; return (