Skip to content

Commit

Permalink
change product summary name based on marketplace
Browse files Browse the repository at this point in the history
  • Loading branch information
abhigyanghosh30 committed Jul 24, 2023
1 parent 7e5edda commit 948977d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(", ", "<br>");
const discount =
Expand Down Expand Up @@ -188,7 +188,7 @@ function Summary({ quantity, product, action, setError }: Props) {
{currencyFormatter.format(
(product?.price?.value *
(product?.price?.discount / 100)) /
100
100
)}
</strong>
</p>
Expand Down

0 comments on commit 948977d

Please sign in to comment.