Skip to content

Commit

Permalink
Fix import from ethers
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialittlejohn committed Oct 16, 2024
1 parent 7226612 commit b24b6b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions centrifuge-app/src/pages/Loan/PricingValues.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CurrencyBalance, Loan, Pool, TinlakeLoan } from '@centrifuge/centrifuge-js'
import { useCentrifugeApi, useCentrifugeQuery } from '@centrifuge/centrifuge-react'
import { Card, Stack, Text } from '@centrifuge/fabric'
import { utils } from 'ethers'
import { toUtf8String } from 'ethers'
import { first, map } from 'rxjs'
import { Tooltips } from '../../components/Tooltips'
import { formatDate, getAge } from '../../utils/date'
Expand All @@ -28,7 +28,7 @@ export function PricingValues({ loan, pool }: Props) {
const currentAssetPrice = Object.entries(info.content)
.filter(([key]) => {
if ('priceId' in pricing && 'isin' in pricing.priceId) {
return utils.toUtf8String(JSON.parse(key).isin) === pricing.priceId.isin
return toUtf8String(JSON.parse(key).isin) === pricing.priceId.isin
} else {
return JSON.parse(key).poolLoanId[1].toString() === loan.id.toString()
}
Expand Down

0 comments on commit b24b6b3

Please sign in to comment.