Skip to content

Commit 48ef0b2

Browse files
committed
fix github title
1 parent 6a42b07 commit 48ef0b2

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/features/githubCard/components/ArticleItem.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const ArticleItem = (props: ArticleItemPropsType) => {
2020
source={sourceName}
2121
key={index}
2222
index={index}
23-
item={{ ...item, title }}
23+
item={item}
2424
cardItem={
2525
<>
2626
<CardLink
@@ -29,14 +29,14 @@ const ArticleItem = (props: ArticleItemPropsType) => {
2929
analyticsAttributes={{
3030
[Attributes.POINTS]: item.reactions,
3131
[Attributes.TRIGERED_FROM]: 'card',
32-
[Attributes.TITLE]: title,
32+
[Attributes.TITLE]: item.title,
3333
[Attributes.LINK]: item.url,
3434
[Attributes.SOURCE]: sourceName,
3535
[Attributes.LANGUAGE]: selectedTag?.value,
3636
}}>
3737
<VscRepo className={'rowTitleIcon'} />
3838
{item.owner && `${item?.owner}/`}
39-
<b>{item.title}</b>
39+
<b>{item.name}</b>
4040
</CardLink>
4141
<p className="rowDescription">{item.description}</p>
4242
{listingMode === 'normal' && (

src/types/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export type ArticleType = {
5252
owner?: string
5353
forks?: string
5454
starsInDateRange?: string
55+
name?: string
5556
}
5657

5758
export type ConferenceType = {

0 commit comments

Comments
 (0)