mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
Updated the front end to handle the possibility of 0 sap points
This commit is contained in:
parent
2f1d012152
commit
0d0d9e2f60
1 changed files with 6 additions and 2 deletions
|
|
@ -142,10 +142,14 @@ export default function RecommendationCard({
|
|||
<td>{cardComponent.newUValue}</td>
|
||||
</tr>
|
||||
)}
|
||||
{cardComponent.sapPoints && (
|
||||
{cardComponent.sapPoints != null && (
|
||||
<tr>
|
||||
<td className="font-medium">SAP Points:</td>
|
||||
<td>{cardComponent.sapPoints}</td>
|
||||
<td>
|
||||
{cardComponent.sapPoints < 0.1
|
||||
? "Negligible"
|
||||
: cardComponent.sapPoints}
|
||||
</td>
|
||||
</tr>
|
||||
)}
|
||||
</tbody>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue