From 432a9fc08d9928f614e8a33576d56a5b7170a384 Mon Sep 17 00:00:00 2001 From: saml33 Date: Tue, 18 Jul 2023 20:53:43 +1000 Subject: [PATCH] fix usdc --- components/account/HealthContributions.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/account/HealthContributions.tsx b/components/account/HealthContributions.tsx index 3079b3ac..74a8f22f 100644 --- a/components/account/HealthContributions.tsx +++ b/components/account/HealthContributions.tsx @@ -44,6 +44,7 @@ const HealthContributions = ({ hideView }: { hideView: () => void }) => { ) initContributions.push({ ...item, + contribution: Math.abs(contribution), hasPerp: hasPerp, isAsset: contribution > 0 ? true : false, }) @@ -82,9 +83,10 @@ const HealthContributions = ({ hideView }: { hideView: () => void }) => { (perp: PerpMarketContribution) => Math.abs(perp.contributionUi) > 0 ) maintContributions.push({ + ...item, hasPerp: hasPerp, isAsset: contribution > 0 ? true : false, - ...item, + contribution: Math.abs(contribution), }) if (item.contributionDetails) { for (const perpMarket of item.contributionDetails