From b24b6b39612b1f8fc63f970b453d3662d0e33152 Mon Sep 17 00:00:00 2001 From: sophian Date: Wed, 16 Oct 2024 16:08:59 -0400 Subject: [PATCH] Fix import from ethers --- centrifuge-app/src/pages/Loan/PricingValues.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centrifuge-app/src/pages/Loan/PricingValues.tsx b/centrifuge-app/src/pages/Loan/PricingValues.tsx index d40a5d6924..4d095fa314 100644 --- a/centrifuge-app/src/pages/Loan/PricingValues.tsx +++ b/centrifuge-app/src/pages/Loan/PricingValues.tsx @@ -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' @@ -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() }