Skip to content

Commit 30003bf

Browse files
feat: clean up code
1 parent 83a8a86 commit 30003bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ui-react/src/hooks/useFilteredContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const getCountryByTimezone = () => {
6464

6565
const getCurrentDay = () => new Date().toLocaleString('en-US', { weekday: 'long' });
6666

67-
const filterDefaultContent = (item: Content) => item?.filterTags?.length === 0;
67+
const filterDefaultContent = (item: Content) => !item?.filterTags?.length;
6868

6969
const filterContentByDevice = (item: Content, isMobile: boolean, isTablet: boolean, isDesktop: boolean) => {
7070
if (item?.filterTags?.includes(DEVICE_FILTER_LABELS.mobile) && isMobile) return true;

0 commit comments

Comments
 (0)