Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialittlejohn committed Jul 31, 2024
1 parent 66c3de7 commit 3aac9d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion centrifuge-app/src/pages/Loan/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ function Loan() {
poolType={poolMetadata?.pool?.asset.class}
decimals={pool.currency.decimals}
pricing={loan.pricing as PricingInfo}
maturityDate={new Date(loan.pricing.maturityDate)}
maturityDate={loan.pricing.maturityDate ? new Date(loan.pricing.maturityDate) : undefined}
originationDate={originationDate ? new Date(originationDate) : undefined}
/>
</Stack>
Expand Down

0 comments on commit 3aac9d1

Please sign in to comment.