From 6209625e239a6e5836b22a7468b45a571e9af4bb Mon Sep 17 00:00:00 2001 From: Jhonatan Gonzalez Date: Wed, 4 Sep 2024 11:05:49 +1000 Subject: [PATCH] [NO CHANGELOG][Wallet Widget] remove unexpected props from img component (#2141) --- .../widgets-lib/src/components/TokenImage/TokenImage.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/checkout/widgets-lib/src/components/TokenImage/TokenImage.tsx b/packages/checkout/widgets-lib/src/components/TokenImage/TokenImage.tsx index 1060b976b6..a3a472d6d0 100644 --- a/packages/checkout/widgets-lib/src/components/TokenImage/TokenImage.tsx +++ b/packages/checkout/widgets-lib/src/components/TokenImage/TokenImage.tsx @@ -32,12 +32,17 @@ export function TokenImage({ [src, error], ); + const { ...cleanedProps } = forwardedProps as Record; + if (Object.prototype.hasOwnProperty.call(cleanedProps, 'responsiveSizes')) { + delete cleanedProps.responsiveSizes; + } + return ( {name} setError(true)} - {...forwardedProps} + {...cleanedProps} /> ); }