Made "Preview" link only visible if recommendations are enabled

refs https://github.com/TryGhost/Product/issues/3816
This commit is contained in:
Djordje Vlaisavljevic 2023-09-05 15:39:42 +01:00
parent d00f437cf2
commit 76778a9dd8

View File

@ -45,7 +45,7 @@ const Recommendations: React.FC<{ keywords: string[] }> = ({keywords}) => {
]; ];
const groupDescription = ( const groupDescription = (
<>Share favorite sites with your audience after they subscribe. <Link href={recommendationsURL} target='_blank'>Preview</Link></> <>Share favorite sites with your audience after they subscribe. {(recommendations && recommendations.length > 0) && <Link href={recommendationsURL} target='_blank'>Preview</Link>}</>
); );
return ( return (