Skip to content

Commit 6142794

Browse files
author
Vikas Agarwal
committed
Allowing evaluation of multiple price conditions in priceConfig array to adapt for new solution block based stacking of solutions. It won’t affect existing forms as we are already hiding the pricing estimate for all forms. However, in case it does create issues with timeline of existing smart forms, we will first try to update the priceConfig conditions in a way that multiples are not true at the same time for existing forms OR update the smart forms with new solution based pricing for all catalog items asap OR as a last resort reverse this commit
1 parent 19090ab commit 6142794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/projectWizard/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ export function getProductEstimate(projectTemplate, projectData) {
590590
_.forOwn(preparedConditions, (cond, placeholder) => {
591591
preparedConditions[placeholder] = evaluate(cond, flatProjectData) === true ? '1 == 1' : '1 == 2'
592592
})
593-
const baseBlocks = getFilteredBuildingBlocks(priceConfig, buildingBlocks, preparedConditions, flatProjectData)
593+
const baseBlocks = getFilteredBuildingBlocks(priceConfig, buildingBlocks, preparedConditions, flatProjectData, true)
594594
const addonBlocks = getFilteredBuildingBlocks(addonPriceConfig, buildingBlocks, preparedConditions, flatProjectData, true)
595595
// for each addon block, check if user has specified quantity for the selected addons
596596
addonBlocks.forEach((addonBlock) => {

0 commit comments

Comments
 (0)