From 22258093457ec410e69c1da357e01b24885555f6 Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Mon, 20 Nov 2023 16:43:54 +0000 Subject: [PATCH] fixing bug when no wall insulation recommendation is present --- .../components/building-passport/RecommendationContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/building-passport/RecommendationContainer.tsx b/src/app/components/building-passport/RecommendationContainer.tsx index 672785cb..b66894bf 100644 --- a/src/app/components/building-passport/RecommendationContainer.tsx +++ b/src/app/components/building-passport/RecommendationContainer.tsx @@ -34,7 +34,7 @@ export default function RecommendationContainer({ }, {} as Record); const defaultWallsRecommendations = - categorizedRecommendations.wall_insulation.find( + categorizedRecommendations.wall_insulation?.find( (rec: Recommendation) => rec.default ) || { estimatedCost: 0, sapPoints: 0 };