Skip to content

Commit

Permalink
[NO CHANGELOG][Wallet Widget] remove unexpected props from img compon…
Browse files Browse the repository at this point in the history
…ent (#2141)
  • Loading branch information
jhesgodi authored Sep 4, 2024
1 parent 6c5313d commit 6209625
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,17 @@ export function TokenImage({
[src, error],
);

const { ...cleanedProps } = forwardedProps as Record<string, unknown>;
if (Object.prototype.hasOwnProperty.call(cleanedProps, 'responsiveSizes')) {
delete cleanedProps.responsiveSizes;
}

return (
<img
src={url}
alt={name}
onError={() => setError(true)}
{...forwardedProps}
{...cleanedProps}
/>
);
}

0 comments on commit 6209625

Please sign in to comment.