We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 590463d commit 628fb4bCopy full SHA for 628fb4b
src/config/projectWizard/index.js
@@ -614,7 +614,10 @@ export function getProductEstimate(projectTemplate, projectData) {
614
maxTime = _.get(projectTemplate, 'scope.baseTimeEstimateMax', 0)
615
} else {
616
_.forEach(matchedBlocks, bb => {
617
- const bbPrice = _.isString(bb.price) ? evaluate(bb.price, flatProjectData) : bb.price
+ let bbPrice = _.isString(bb.price) ? evaluate(bb.price, flatProjectData) : bb.price
618
+ if (isNaN(bbPrice)) { // if we are unable to parse price as numeric value, set it as ZERO
619
+ bbPrice = 0
620
+ }
621
price += (bbPrice * (bb.quantity ? bb.quantity : 1))
622
minTime += bb.minTime
623
maxTime += bb.maxTime
0 commit comments