Skip to content

Commit 00e25c0

Browse files
authored
Merge pull request #263 from medyo/develop
Fix wrong connectedAt type and zeros handling in Github card
2 parents 13c583d + 9e7c3e7 commit 00e25c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/features/auth/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export type User = {
22
id: string
33
name: string
4-
connectedAt?: Date
4+
connectedAt?: string
55
imageURL?: string
66
streak?: number
77
}

src/features/cards/components/githubCard/RepoItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const RepoItem = ({
5151
<VscStarFull className="rowItemIcon" /> {numberWithCommas(item.stars_count)} stars
5252
</span>
5353
)}
54-
{item.stars_in_range && (
54+
{item.stars_in_range !== undefined && (
5555
<span className="rowItem">
5656
<VscStarFull className="rowItemIcon" />{' '}
5757
{numberWithCommas(item.stars_in_range || 0)} stars{' '}
@@ -60,7 +60,7 @@ const RepoItem = ({
6060
: 'today'}
6161
</span>
6262
)}
63-
{item.forks_count && (
63+
{item.forks_count !== undefined && (
6464
<span className="rowItem">
6565
<VscRepoForked className="rowItemIcon" /> {numberWithCommas(item.forks_count)}{' '}
6666
forks

0 commit comments

Comments
 (0)