diff --git a/ui/component/recommendedPersonal/view.jsx b/ui/component/recommendedPersonal/view.jsx index 18e96de2d..af62c91b6 100644 --- a/ui/component/recommendedPersonal/view.jsx +++ b/ui/component/recommendedPersonal/view.jsx @@ -72,7 +72,9 @@ export default function RecommendedPersonal(props: Props) { React.useEffect(() => { // -- Update parent's callback request - onLoad(count > 0); + if (typeof onLoad === 'function') { + onLoad(count > 0); + } }, [count, onLoad]); React.useEffect(() => { diff --git a/ui/page/home/view.jsx b/ui/page/home/view.jsx index 280f98e77..88ebc5fd3 100644 --- a/ui/page/home/view.jsx +++ b/ui/page/home/view.jsx @@ -2,7 +2,7 @@ import * as ICONS from 'constants/icons'; import * as PAGES from 'constants/pages'; import { SITE_NAME, SIMPLE_SITE, ENABLE_NO_SOURCE_CLAIMS } from 'config'; -import React, { useState } from 'react'; +import React from 'react'; import Page from 'component/page'; import Button from 'component/button'; import ClaimTilesDiscover from 'component/claimTilesDiscover'; @@ -22,6 +22,10 @@ import Ads from 'web/component/ads'; import Meme from 'web/component/meme'; // @endif +function resolveTitleOverride(title: string) { + return title === 'Recent From Following' ? 'Following' : title; +} + type Props = { authenticated: boolean, followedTags: Array, @@ -119,19 +123,18 @@ function HomePage(props: Props) { 'show-ribbon': index === 0, })} > - {/* category header */} - {index !== 0 && title && typeof title === 'string' && ( - + {title && typeof title === 'string' && ( + )} {index === 0 && <>{claimTiles}} + {index !== 0 && ( {claimTiles} )} - {/* view more button */} {(route || link) && (