Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
paales committed Jan 4, 2024
1 parent 096a395 commit 53d6eca
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,17 @@ export const exported =
export function SimpleCartItemActionCard(
props: PluginProps<React.ComponentProps<typeof CartItemActionCard>>,
) {
const { Prev, cartItem, ...rest } = props
const { Prev, ...rest } = props

if (!isTypename(cartItem, ['SimpleCartItem'])) return <Prev cartItem={cartItem} {...rest} />
if (!isTypename(rest.cartItem, ['SimpleCartItem'])) return <Prev {...rest} />

return (
<Prev
{...rest}
cartItem={cartItem}
details={
<>
{rest.details}
<SelectedCustomizableOptions {...cartItem} />
<SelectedCustomizableOptions {...rest.cartItem} />
</>
}
/>
Expand Down

0 comments on commit 53d6eca

Please sign in to comment.