fixing bug when no wall insulation recommendation is present

This commit is contained in:
Khalim Conn-Kowlessar 2023-11-20 16:43:54 +00:00
parent c6506786f6
commit 2225809345

View file

@ -34,7 +34,7 @@ export default function RecommendationContainer({
}, {} as Record<RecommendationType, (typeof recommendations)[0][]>);
const defaultWallsRecommendations =
categorizedRecommendations.wall_insulation.find(
categorizedRecommendations.wall_insulation?.find(
(rec: Recommendation) => rec.default
) || { estimatedCost: 0, sapPoints: 0 };