Skip to content

Commit

Permalink
fix: non-nullable values
Browse files Browse the repository at this point in the history
  • Loading branch information
Another-DevX committed Apr 4, 2024
1 parent 4ab40ff commit 083d474
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/views/MicroCredit/LoanRepayment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,14 @@ const LoanRepayment = (props: any) => {
mb={0.5}
>
<PerformanceIcon
performance={borrower?.lastLoanPerformance}
performance={borrower?.lastLoanPerformance ?? 0}
/>
<RichText
content={repayLoanPerformanceWarningTitle}
variables={{
value: borrower?.lastLoanPerformance
value: (
borrower?.lastLoanPerformance ?? 0
).toString()
}}
g900
semibold
Expand Down

0 comments on commit 083d474

Please sign in to comment.