Merge branch 'dev' into 'main'
fix: remove cart price from custom tariff price summary See merge request frontend/marketplace!14
This commit is contained in:
commit
ade3a102e8
@ -24,8 +24,8 @@ export default function TotalPrice() {
|
|||||||
const basePrice = Object.values(summaryPriceBeforeDiscountsMap).reduce((a, e) => a + e, 0);
|
const basePrice = Object.values(summaryPriceBeforeDiscountsMap).reduce((a, e) => a + e, 0);
|
||||||
const discountedPrice = Object.values(summaryPriceAfterDiscountsMap).reduce((a, e) => a + e, 0);
|
const discountedPrice = Object.values(summaryPriceAfterDiscountsMap).reduce((a, e) => a + e, 0);
|
||||||
|
|
||||||
const totalPriceBeforeDiscounts = priceBeforeDiscounts + basePrice;
|
const totalPriceBeforeDiscounts = basePrice;
|
||||||
const totalPriceAfterDiscounts = priceAfterDiscounts + discountedPrice;
|
const totalPriceAfterDiscounts = discountedPrice;
|
||||||
|
|
||||||
function handlePayClick() {
|
function handlePayClick() {
|
||||||
// payCart().then(result => {
|
// payCart().then(result => {
|
||||||
|
@ -13,6 +13,7 @@ export default function Summary() {
|
|||||||
const basePrice = Object.values(summaryPriceBeforeDiscountsMap).reduce((a, e) => a + e, 0);
|
const basePrice = Object.values(summaryPriceBeforeDiscountsMap).reduce((a, e) => a + e, 0);
|
||||||
const discountedPrice = Object.values(summaryPriceAfterDiscountsMap).reduce((a, e) => a + e, 0);
|
const discountedPrice = Object.values(summaryPriceAfterDiscountsMap).reduce((a, e) => a + e, 0);
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box sx={{
|
<Box sx={{
|
||||||
display: "flex",
|
display: "flex",
|
||||||
|
@ -63,6 +63,7 @@ export default function TariffPrivilegeSlider({ tariff }: Props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
useEffect(function setStoreValue() {
|
useEffect(function setStoreValue() {
|
||||||
|
console.log(currentCartTotal)
|
||||||
setCustomTariffsUserValue(
|
setCustomTariffsUserValue(
|
||||||
tariff.serviceKey,
|
tariff.serviceKey,
|
||||||
tariff._id,
|
tariff._id,
|
||||||
|
Loading…
Reference in New Issue
Block a user