diff --git a/malty/atoms/Image/Image.tsx b/malty/atoms/Image/Image.tsx index 1edd9bae3..8e42bf2f3 100644 --- a/malty/atoms/Image/Image.tsx +++ b/malty/atoms/Image/Image.tsx @@ -27,8 +27,7 @@ export const Image = ({ const handleError = (event: React.SyntheticEvent) => { if (fallbackSrc) { - const newEvent = { ...event }; - newEvent.currentTarget.src = fallbackSrc; + event.currentTarget.setAttribute('src', fallbackSrc); } else { setHasImageError(true); }