Fixed disapparing Ghost icon in the Recommendation list (#18257)

no issue
This commit is contained in:
Sag 2023-09-20 22:49:21 +02:00 committed by GitHub
parent 163263a27f
commit 62bf3e068d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ const RecommendationItem: React.FC<{recommendation: Recommendation}> = ({recomme
});
};
const showSubscribes = recommendation.one_click_subscribe && (recommendation.count?.subscribers || recommendation.count?.clicks === 0);
const showSubscribes = recommendation.one_click_subscribe;
const count = (showSubscribes ? recommendation.count?.subscribers : recommendation.count?.clicks) || 0;
return (