Skip to content

Commit bca742e

Browse files
committed
fix: repo-tabs label
#163
1 parent 4df2ce5 commit bca742e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/features/repo-list/tabs/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,11 @@ const RepoListTabs = (props: Props) => {
3030
className="repo-list__tab"
3131
active={config.tab === type}
3232
onClick={() => handleTabClick(type)}
33-
label={config.tab === type && !loading ? String(totalCount || 0) : undefined}
33+
label={
34+
config.tab === type && !loading && totalCount
35+
? String(totalCount)
36+
: undefined
37+
}
3438
/>
3539
))}
3640
</Tabs>

0 commit comments

Comments
 (0)