From 53d6eca39e4995018dd8e17578b387ef0fea9f07 Mon Sep 17 00:00:00 2001 From: Paul Hachmang Date: Thu, 4 Jan 2024 14:09:10 +0100 Subject: [PATCH] Cleanup --- .../plugins/SimpleCartItemActionCard.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/magento-product-simple/plugins/SimpleCartItemActionCard.tsx b/packages/magento-product-simple/plugins/SimpleCartItemActionCard.tsx index 488151deb1..b06c7f7649 100644 --- a/packages/magento-product-simple/plugins/SimpleCartItemActionCard.tsx +++ b/packages/magento-product-simple/plugins/SimpleCartItemActionCard.tsx @@ -12,18 +12,17 @@ export const exported = export function SimpleCartItemActionCard( props: PluginProps>, ) { - const { Prev, cartItem, ...rest } = props + const { Prev, ...rest } = props - if (!isTypename(cartItem, ['SimpleCartItem'])) return + if (!isTypename(rest.cartItem, ['SimpleCartItem'])) return return ( {rest.details} - + } />