Skip to content

Commit 7dc1221

Browse files
authored
fix committee icon refresh loop (#1055)
1 parent 853ee6e commit 7dc1221

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/components/images/CommitteeIcon.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
const onError =
2020
(imageUrl: string): EventHandler =>
2121
(event) => {
22-
if (event.target instanceof HTMLImageElement) {
22+
if (
23+
event.target instanceof HTMLImageElement &&
24+
(imageUrl != FALLBACK.color || imageUrl != FALLBACK.mono)
25+
) {
2326
event.target.src = imageUrl;
2427
}
2528
};

0 commit comments

Comments
 (0)