Skip to content

Commit 610861e

Browse files
akabirumyabc
andauthored
Type cast img dom search
Co-authored-by: Alexander Brandon Coles <a.coles@openproject.com>
1 parent b4d408d commit 610861e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/components/primer/open_project/avatar_fallback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export class AvatarFallbackElement extends HTMLElement {
1010
// keeps its default gray fill defined in the source and no color override is applied.
1111
if (!this.uniqueId || !this.altText) return
1212

13-
const img = this.querySelector('img[src^="data:image/svg+xml"]')
13+
const img = this.querySelector<HTMLImageElement>('img[src^="data:image/svg+xml"]')
1414
if (!img) return
1515

1616
// Generate consistent color based on uniqueId and altText (hash must match OP Core)

0 commit comments

Comments
 (0)