mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Fixed counting subscribe after click on RecommendationsPage
fixes https://github.com/TryGhost/Product/issues/3892 After a user visited a site, we should still a subscribe that happens later.
This commit is contained in:
parent
ccf508e8f7
commit
9a4c0ba33b
1 changed files with 1 additions and 4 deletions
|
@ -194,10 +194,7 @@ const RecommendationItem = (recommendation) => {
|
|||
siteUrl: url,
|
||||
throwErrors: true
|
||||
});
|
||||
if (!clicked) {
|
||||
onAction('trackRecommendationSubscribed', {recommendationId: recommendation.id});
|
||||
setClicked(true);
|
||||
}
|
||||
onAction('trackRecommendationSubscribed', {recommendationId: recommendation.id});
|
||||
setSubscribed(true);
|
||||
} catch (_) {
|
||||
// Open portal signup page
|
||||
|
|
Loading…
Reference in a new issue