diff --git a/src/category/data.ts b/src/category/data.ts index 0d68fba9..dc284227 100644 --- a/src/category/data.ts +++ b/src/category/data.ts @@ -39,10 +39,11 @@ export const NULL_CATEGORY_DATA: CategoryData = { export const getDataForCategories = () => Promise.all([ SHOW_RECENTS ? getPhotosMeta({ recent: true }) - .then(({ count, dateRange }) => [{ - count, - lastModified: new Date(dateRange?.end ?? ''), - }]) + .then(({ count, dateRange }) => count && dateRange + ? [{ + count, + lastModified: new Date(dateRange?.end ?? ''), + }] : undefined) .catch(() => []) : undefined, SHOW_YEARS diff --git a/src/components/primitives/ResponsiveText.tsx b/src/components/primitives/ResponsiveText.tsx index a130c0a5..efbc068f 100644 --- a/src/components/primitives/ResponsiveText.tsx +++ b/src/components/primitives/ResponsiveText.tsx @@ -20,7 +20,6 @@ export default function ResponsiveText({ const textLength = typeof children === 'string' ? children.length : 0; - console.log(textLength); return textLength >= CHARACTER_CUTOFF_LG ? { short: 'lg:hidden', long: 'max-lg:hidden' } : textLength >= CHARACTER_CUTOFF_MD