From 2c7c0e99e0b48e7b8cad42438344c623acff74fc Mon Sep 17 00:00:00 2001 From: Linkie Link Date: Wed, 21 Feb 2024 08:08:40 +0100 Subject: [PATCH] fix: fixe portfolio and intro wording --- src/components/portfolio/Overview/Summary.tsx | 3 ++- src/components/v1/V1Intro.tsx | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/portfolio/Overview/Summary.tsx b/src/components/portfolio/Overview/Summary.tsx index 828455de..acb5da8a 100644 --- a/src/components/portfolio/Overview/Summary.tsx +++ b/src/components/portfolio/Overview/Summary.tsx @@ -31,7 +31,8 @@ export default function PortfolioSummary() { const { data: v1Account } = useAccount(urlAddress) const stats = useMemo(() => { if (!accounts?.length) return - if (v1Account) accounts.push(v1Account) + if (v1Account && !accounts.find((account) => account.id === urlAddress)) + accounts.push(v1Account) const combinedAccount = accounts.reduce( (combinedAccount, account) => { combinedAccount.debts = combinedAccount.debts.concat(account.debts) diff --git a/src/components/v1/V1Intro.tsx b/src/components/v1/V1Intro.tsx index 427ca35e..fe5258d8 100644 --- a/src/components/v1/V1Intro.tsx +++ b/src/components/v1/V1Intro.tsx @@ -9,9 +9,8 @@ export default function V1Intro() { text={ <> The Wallet Mode provides simple lending and borrowing - without the use of Credit Accounts. Funds are{' '} - not cross-collateralized and can‘t be used in - the Trade or Farm interface. + without the use of Credit Accounts. Deposits{' '} + can‘t be used in the Trade or Farm interface. } bg='v1'