Skip to content

Commit 9fe6148

Browse files
committed
fix: add props for line items count
1 parent 704c7a3 commit 9fe6148

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

components/composite/OrderSummary/index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ export const OrderSummary: React.FC<Props> = ({ appCtx, readonly }) => {
5252
data-cy="items-count"
5353
typeAccepted={["skus", "gift_cards", "bundles"]}
5454
>
55-
<span data-cy="items-count">
56-
{t("orderRecap.cartContains", { count: props.quantity })}
57-
</span>
55+
{(props) => (
56+
<span data-cy="items-count">
57+
{t("orderRecap.cartContains", { count: props.quantity })}
58+
</span>
59+
)}
5860
</LineItemsCount>
5961
</SummarySubTitle>
6062
</SummaryHeader>

0 commit comments

Comments
 (0)