Skip to content

Commit ea85547

Browse files
author
Vikas Agarwal
committed
Patching for error in loading specification tab for https://connect.topcoder.com/projects/1218/specification
1 parent fe072e4 commit ea85547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/projects/detail/components/VisualDesignProjectEstimateSection.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const numberWithCommas = (n) => n.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',
77

88
const VisualDesignProjectEstimateSection = ({products, project}) => {
99
// TODO when we support multiple products per project, we can loop through products and sum up the estimates
10-
const productId = products[0]
10+
const productId = products ? products[0] : null
1111
const product = findProduct(productId)
1212
if (!product || typeof product.basePriceEstimate === 'undefined') {
1313
return <div />

0 commit comments

Comments
 (0)