File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,9 @@ export const LanguagesUsageGraph: FC<Props> = ({ data }) => {
96
96
< CardHeader className = "items-start pb-0" >
97
97
< CardTitle > 言語の使用率</ CardTitle >
98
98
< CardDescription >
99
- あなたが最も使用した言語は < b > { limitedData [ 0 ] . language } </ b > です。
99
+ { limitedData . length === 0
100
+ ? "データがありません。"
101
+ : `あなたが最も使用した言語は <b>${ limitedData [ 0 ] . language } </b> です。` }
100
102
</ CardDescription >
101
103
</ CardHeader >
102
104
< CardContent className = "flex-1 pb-0" >
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ export const OverView: FC<Props> = async ({ data }) => {
61
61
</ CardHeader >
62
62
< CardContent className = "pr-24 space-y-1" >
63
63
< div className = "text-sm text-muted-foreground font-bold italic truncate" >
64
- "{ data . userProfile . bio } "
64
+ { data . userProfile . bio && "{data.userProfile.bio}" }
65
65
</ div >
66
66
< div className = "flex items-center gap-2 text-sm text-muted-foreground truncate" >
67
67
< UsersRound className = "h-4 w-4" />
@@ -188,8 +188,10 @@ export const OverView: FC<Props> = async ({ data }) => {
188
188
< CardHeader >
189
189
< CardTitle > リポジトリごとの統計</ CardTitle >
190
190
< CardDescription >
191
- あなたが最もコミットしたリポジトリは{ " " }
192
- < b > { data . repositoriesByCommitCount [ 0 ] . nameWithOwner } </ b > です。
191
+ { data . repositoriesByCommitCount . length === 0
192
+ ? "データがありません。"
193
+ : `あなたが最もコミットしたリポジトリは{" "}
194
+ <b>${ data . repositoriesByCommitCount [ 0 ] . nameWithOwner } </b> です。` }
193
195
</ CardDescription >
194
196
</ CardHeader >
195
197
< CardContent >
You can’t perform that action at this time.
0 commit comments