We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4d408d commit 610861eCopy full SHA for 610861e
app/components/primer/open_project/avatar_fallback.ts
@@ -10,7 +10,7 @@ export class AvatarFallbackElement extends HTMLElement {
10
// keeps its default gray fill defined in the source and no color override is applied.
11
if (!this.uniqueId || !this.altText) return
12
13
- const img = this.querySelector('img[src^="data:image/svg+xml"]')
+ const img = this.querySelector<HTMLImageElement>('img[src^="data:image/svg+xml"]')
14
if (!img) return
15
16
// Generate consistent color based on uniqueId and altText (hash must match OP Core)
0 commit comments