types fixed
This commit is contained in:
@@ -183,7 +183,7 @@ export default function ClaimViewModal({
|
|||||||
)}
|
)}
|
||||||
<p>
|
<p>
|
||||||
<span className="text-gray-500">Billed Amount:</span>{" "}
|
<span className="text-gray-500">Billed Amount:</span>{" "}
|
||||||
${line.totalBilled.toFixed(2)}
|
${Number(line.totalBilled).toFixed(2)}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
@@ -191,7 +191,8 @@ export default function ClaimViewModal({
|
|||||||
Total Billed Amount: $
|
Total Billed Amount: $
|
||||||
{claim.serviceLines
|
{claim.serviceLines
|
||||||
.reduce(
|
.reduce(
|
||||||
(total, line) => total + line.totalBilled?.toNumber(),
|
(total, line) =>
|
||||||
|
total + Number(line.totalBilled || 0),
|
||||||
0
|
0
|
||||||
)
|
)
|
||||||
.toFixed(2)}
|
.toFixed(2)}
|
||||||
|
|||||||
@@ -282,7 +282,7 @@ export default function ClaimsRecentTable({
|
|||||||
|
|
||||||
const getTotalBilled = (claim: ClaimWithServiceLines) => {
|
const getTotalBilled = (claim: ClaimWithServiceLines) => {
|
||||||
return claim.serviceLines.reduce(
|
return claim.serviceLines.reduce(
|
||||||
(sum, line) => sum + (line.totalBilled?.toNumber() || 0),
|
(sum, line) => sum + Number(line.totalBilled || 0),
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user