Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Remove unnecessary usage of useStoreCartItemQuantity
Browse files Browse the repository at this point in the history
  • Loading branch information
Aljullu committed Mar 13, 2020
1 parent 4a60a67 commit 87214e3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions assets/js/blocks/cart-checkout/checkout/order-summary-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*/
import { __, sprintf } from '@wordpress/i18n';
import { getCurrency } from '@woocommerce/base-utils';
import { useStoreCartItemQuantity } from '@woocommerce/base-hooks';
import Label from '@woocommerce/base-components/label';
import {
ProductImage,
Expand All @@ -21,12 +20,11 @@ const CheckoutOrderSummaryItem = ( { cartItem } ) => {
name,
permalink,
prices,
quantity,
summary,
variation,
} = cartItem;

const { quantity } = useStoreCartItemQuantity( cartItem );

const currency = getCurrency( prices );
const regularPrice = parseInt( prices.regular_price, 10 );
const purchasePrice = parseInt( prices.price, 10 );
Expand Down Expand Up @@ -78,6 +76,7 @@ CheckoutOrderSummaryItem.propTypes = {
price: PropTypes.string,
regular_price: PropTypes.string,
} ),
quantity: PropTypes.number,
summary: PropTypes.string,
variation: PropTypes.array,
} ),
Expand Down

0 comments on commit 87214e3

Please sign in to comment.