Skip to content

Commit 8860a85

Browse files
authored
Merge pull request #24 from namidapoo/dev
Release `v1.0.4`
2 parents 48af44a + b7fe8fb commit 8860a85

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

app/recap/components/graph/languages.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ export const LanguagesUsageGraph: FC<Props> = ({ data }) => {
9696
<CardHeader className="items-start pb-0">
9797
<CardTitle>言語の使用率</CardTitle>
9898
<CardDescription>
99-
あなたが最も使用した言語は <b>{limitedData[0].language}</b> です。
99+
{limitedData.length === 0
100+
? "データがありません。"
101+
: `あなたが最も使用した言語は <b>${limitedData[0].language}</b> です。`}
100102
</CardDescription>
101103
</CardHeader>
102104
<CardContent className="flex-1 pb-0">

app/recap/components/overview.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const OverView: FC<Props> = async ({ data }) => {
6161
</CardHeader>
6262
<CardContent className="pr-24 space-y-1">
6363
<div className="text-sm text-muted-foreground font-bold italic truncate">
64-
"{data.userProfile.bio}"
64+
{data.userProfile.bio && "{data.userProfile.bio}"}
6565
</div>
6666
<div className="flex items-center gap-2 text-sm text-muted-foreground truncate">
6767
<UsersRound className="h-4 w-4" />
@@ -188,8 +188,10 @@ export const OverView: FC<Props> = async ({ data }) => {
188188
<CardHeader>
189189
<CardTitle>リポジトリごとの統計</CardTitle>
190190
<CardDescription>
191-
あなたが最もコミットしたリポジトリは{" "}
192-
<b>{data.repositoriesByCommitCount[0].nameWithOwner}</b> です。
191+
{data.repositoriesByCommitCount.length === 0
192+
? "データがありません。"
193+
: `あなたが最もコミットしたリポジトリは{" "}
194+
<b>${data.repositoriesByCommitCount[0].nameWithOwner}</b> です。`}
193195
</CardDescription>
194196
</CardHeader>
195197
<CardContent>

0 commit comments

Comments
 (0)