From 0d0d9e2f602daf8866cd451aff1afd59250e1a8b Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Wed, 7 Feb 2024 00:16:53 +0000 Subject: [PATCH] Updated the front end to handle the possibility of 0 sap points --- .../components/building-passport/RecommendationCard.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/components/building-passport/RecommendationCard.tsx b/src/app/components/building-passport/RecommendationCard.tsx index 5238e54..7191a82 100644 --- a/src/app/components/building-passport/RecommendationCard.tsx +++ b/src/app/components/building-passport/RecommendationCard.tsx @@ -142,10 +142,14 @@ export default function RecommendationCard({ {cardComponent.newUValue} )} - {cardComponent.sapPoints && ( + {cardComponent.sapPoints != null && ( SAP Points: - {cardComponent.sapPoints} + + {cardComponent.sapPoints < 0.1 + ? "Negligible" + : cardComponent.sapPoints} + )}