Skip to content

Commit e739711

Browse files
committed
2025.03.06 fix ts
1 parent e0ae2df commit e739711

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/api/widget/[login]/[widgetType]/route.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ export async function GET(req: NextRequest, { params }: Props) {
3939
fontWeight: 600,
4040
}}
4141
>
42-
<img src={user?.avatarUrl} width={100} height={100} />
42+
{/* eslint-disable-next-line @next/next/no-img-element */}
43+
{!!user?.avatarUrl && <img src={user?.avatarUrl} width={100} height={100} alt="user avatar" />}
4344
<div style={{ marginTop: 40 }}>{`${user?.login}: #${ownedStars} with ${user?.ownedStars} stars`}</div>
4445
</div>
4546
),

0 commit comments

Comments
 (0)