From 948977d555f128334f49dd85e913c70094a9de4a Mon Sep 17 00:00:00 2001 From: abhigyanghosh30 Date: Mon, 24 Jul 2023 21:52:02 +0530 Subject: [PATCH] change product summary name based on marketplace --- .../subscribe/checkout/components/Summary/Summary.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/src/advantage/subscribe/checkout/components/Summary/Summary.tsx b/static/js/src/advantage/subscribe/checkout/components/Summary/Summary.tsx index 4e478db04d6..74c5ec8f2bb 100644 --- a/static/js/src/advantage/subscribe/checkout/components/Summary/Summary.tsx +++ b/static/js/src/advantage/subscribe/checkout/components/Summary/Summary.tsx @@ -43,8 +43,8 @@ function Summary({ quantity, product, action, setError }: Props) { const taxAmount = (priceData?.tax ?? 0) / 100; const total = (priceData?.total ?? 0) / 100; - const units = product?.marketplace === "canonical-ua" ? "Machines" : "Users"; - const planType = action !== "offer" ? "Plan type" : "Products"; + const units = product?.marketplace === "canonical-ua" ? "Machines" : product?.marketplace === "canonical-cube" ? "Exams" : "Users"; + const planType = action !== "offer" ? "Plan type" : product?.marketplace === "canonical-cube" ? "Exams" : "Products"; const productName = action !== "offer" ? product?.name : product?.name.replace(", ", "
"); const discount = @@ -188,7 +188,7 @@ function Summary({ quantity, product, action, setError }: Props) { {currencyFormatter.format( (product?.price?.value * (product?.price?.discount / 100)) / - 100 + 100 )}