We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0ae2df commit e739711Copy full SHA for e739711
app/api/widget/[login]/[widgetType]/route.tsx
@@ -39,7 +39,8 @@ export async function GET(req: NextRequest, { params }: Props) {
39
fontWeight: 600,
40
}}
41
>
42
- <img src={user?.avatarUrl} width={100} height={100} />
+ {/* eslint-disable-next-line @next/next/no-img-element */}
43
+ {!!user?.avatarUrl && <img src={user?.avatarUrl} width={100} height={100} alt="user avatar" />}
44
<div style={{ marginTop: 40 }}>{`${user?.login}: #${ownedStars} with ${user?.ownedStars} stars`}</div>
45
</div>
46
),
0 commit comments