From d95bda1b46f3f7c81a4f447d6c0139b7ca33c1a7 Mon Sep 17 00:00:00 2001 From: katty barroso Date: Thu, 7 Nov 2024 11:59:31 +0100 Subject: [PATCH] Assets page fixes --- centrifuge-app/src/pages/Loan/ExternalFinanceForm.tsx | 2 +- centrifuge-app/src/pages/Loan/ExternalRepayForm.tsx | 6 +++--- centrifuge-app/src/pages/Loan/FinanceForm.tsx | 4 ++-- centrifuge-app/src/pages/Loan/RepayForm.tsx | 4 ++-- centrifuge-app/src/pages/Loan/index.tsx | 2 +- centrifuge-app/src/pages/Pool/Assets/index.tsx | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/centrifuge-app/src/pages/Loan/ExternalFinanceForm.tsx b/centrifuge-app/src/pages/Loan/ExternalFinanceForm.tsx index da9a58140f..7723d911bf 100644 --- a/centrifuge-app/src/pages/Loan/ExternalFinanceForm.tsx +++ b/centrifuge-app/src/pages/Loan/ExternalFinanceForm.tsx @@ -248,7 +248,7 @@ export function ExternalFinanceForm({ Liquidity tab. - + Transaction summary diff --git a/centrifuge-app/src/pages/Loan/ExternalRepayForm.tsx b/centrifuge-app/src/pages/Loan/ExternalRepayForm.tsx index c286192fda..01309f884d 100644 --- a/centrifuge-app/src/pages/Loan/ExternalRepayForm.tsx +++ b/centrifuge-app/src/pages/Loan/ExternalRepayForm.tsx @@ -323,10 +323,10 @@ export function ExternalRepayForm({ outstanding interest ({formatBalance(maxInterest, displayCurrency, 2)}). - + Transaction summary - + - + {destination === 'reserve' ? ( diff --git a/centrifuge-app/src/pages/Loan/FinanceForm.tsx b/centrifuge-app/src/pages/Loan/FinanceForm.tsx index 78e8a8236e..dcfd8466ff 100644 --- a/centrifuge-app/src/pages/Loan/FinanceForm.tsx +++ b/centrifuge-app/src/pages/Loan/FinanceForm.tsx @@ -278,9 +278,9 @@ function InternalFinanceForm({ - + Transaction summary - + - + Transaction summary - + ) : null} {loan.outstandingDebt.gtn(0) && ( - )} diff --git a/centrifuge-app/src/pages/Pool/Assets/index.tsx b/centrifuge-app/src/pages/Pool/Assets/index.tsx index 41c735f452..61c8ec2514 100644 --- a/centrifuge-app/src/pages/Pool/Assets/index.tsx +++ b/centrifuge-app/src/pages/Pool/Assets/index.tsx @@ -118,7 +118,7 @@ export function PoolDetailAssets() { }, { label: `Accrued fees (${pool.currency.symbol})`, - value: `-${formatBalance(pool.fees.totalPaid)}`, + value: `${pool.fees.totalPaid.isZero() ? '' : '-'}${formatBalance(pool.fees.totalPaid)}`, heading: false, }, ]