Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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 <div />
Expand Down