Skip to content

Commit

Permalink
Update centrifuge-app/src/pages/NavManagement/NavManagementAssetTable…
Browse files Browse the repository at this point in the history
….tsx

Co-authored-by: Sophia <littlejohn.sophia@gmail.com>
  • Loading branch information
kattylucy and sophialittlejohn authored Oct 2, 2024
1 parent ec80ea8 commit 682f840
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ export function NavManagementAssetTable({ poolId }: { poolId: string }) {

const changeInValuation = React.useMemo(() => {
return (externalLoans as ActiveLoan[]).reduce((prev, curr) => {
const price = curr.currentPrice ? curr.currentPrice.toDecimal() : 0
const price = curr.currentPrice ? curr.currentPrice.toDecimal() : Dec(0)
const quantity = (curr as ExternalLoan).pricing.outstandingQuantity.toDecimal()
const updatedPrice = Dec(form.values.feed.find((p) => p.id === curr.id)?.value || 0)
return CurrencyBalance.fromFloat(
Expand Down

0 comments on commit 682f840

Please sign in to comment.