mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-30 12:55:02 +00:00
fixing bug when no wall insulation recommendation is present
This commit is contained in:
parent
c6506786f6
commit
2225809345
1 changed files with 1 additions and 1 deletions
|
|
@ -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 };
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue