Updated the front end to handle the possibility of 0 sap points

This commit is contained in:
Khalim Conn-Kowlessar 2024-02-07 00:16:53 +00:00
parent 2f1d012152
commit 0d0d9e2f60

View file

@ -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>