Skip to content

Commit 3109fb0

Browse files
committed
fix analytics props
1 parent 6d9b2ad commit 3109fb0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/features/githubCard/components/RepoItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const RepoItem = (props: RepoItemPropsType) => {
2626
className="githubTitle"
2727
link={item.url}
2828
analyticsAttributes={{
29-
[Attributes.POINTS]: numberWithCommas(item.stars),
29+
[Attributes.POINTS]: item.stars,
3030
[Attributes.TRIGERED_FROM]: 'card',
3131
[Attributes.TITLE]: item.title,
3232
[Attributes.LINK]: item.url,

src/features/producthuntCard/components/ArticleItem.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const ArticleItem = (props: ArticleItemPropsType) => {
2424
link={item.url}
2525
appendRef={false}
2626
analyticsAttributes={{
27-
[Attributes.POINTS]: item.image_url,
27+
[Attributes.POINTS]: item.reactions,
2828
[Attributes.TRIGERED_FROM]: 'card',
2929
[Attributes.TITLE]: item.title,
3030
[Attributes.LINK]: item.url,

0 commit comments

Comments
 (0)