From ea8554782bbcc426a9f13af96348162f8a26cab7 Mon Sep 17 00:00:00 2001 From: Vikas Agarwal Date: Tue, 20 Mar 2018 17:33:17 +0530 Subject: [PATCH] Patching for error in loading specification tab for https://connect.topcoder.com/projects/1218/specification --- .../detail/components/VisualDesignProjectEstimateSection.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/projects/detail/components/VisualDesignProjectEstimateSection.jsx b/src/projects/detail/components/VisualDesignProjectEstimateSection.jsx index 0e13fe326..98d5beeff 100644 --- a/src/projects/detail/components/VisualDesignProjectEstimateSection.jsx +++ b/src/projects/detail/components/VisualDesignProjectEstimateSection.jsx @@ -7,7 +7,7 @@ const numberWithCommas = (n) => n.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ', const VisualDesignProjectEstimateSection = ({products, project}) => { // TODO when we support multiple products per project, we can loop through products and sum up the estimates - const productId = products[0] + const productId = products ? products[0] : null const product = findProduct(productId) if (!product || typeof product.basePriceEstimate === 'undefined') { return