diff --git a/components/Header/stats/apy.tsx b/components/Header/stats/apy.tsx
index d0e2b61f..1a6ac862 100644
--- a/components/Header/stats/apy.tsx
+++ b/components/Header/stats/apy.tsx
@@ -20,7 +20,6 @@ export const APY = () => {
const { weightedNetLiquidity, hasNegativeNetLiquidity, assets } = useNonFarmedAssets();
const totalApy = netAPY + netLiquidityAPY;
const amount = `${totalApy.toLocaleString(undefined, APY_FORMAT)}%`;
- const [showTooltip, setShowTooltip] = useState(false);
const showLabels = netAPY > 0 || netLiquidityAPY > 0;
const { averageSupplyApy, averageBorrowedApy } = useAverageAPY();
const apyLabels = [
@@ -56,7 +55,7 @@ export const APY = () => {
titleTooltip="Net APY = Daily Total Profit / Your Net Liquidity * 365 days"
amount={amount}
tooltip={tooltip}
- labels={apyLabels}
+ labels={showLabels ? apyLabels : []}
/>
diff --git a/components/Header/stats/rewards.tsx b/components/Header/stats/rewards.tsx
index fba2be21..35181bbd 100644
--- a/components/Header/stats/rewards.tsx
+++ b/components/Header/stats/rewards.tsx
@@ -58,7 +58,11 @@ export const UserDailyRewards = () => {
],
[
{
- value: `-${toInternationalCurrencySystem_usd(baseBorrowedUsdDaily)}`,
+ value: `${
+ baseBorrowedUsdDaily > 0
+ ? `-${toInternationalCurrencySystem_usd(baseBorrowedUsdDaily)}`
+ : "$0"
+ }`,
text: "Borrow Interest",
},
],
@@ -74,7 +78,7 @@ export const UserDailyRewards = () => {
}
- labels={rewardsLabels}
+ labels={totalUsdDaily !== 0 ? rewardsLabels : []}
/>
);
@@ -139,7 +143,7 @@ const IncentiveMore = ({ farmSuppliedUsdDaily, farmBorrowedUsdDaily, farmNetTvlU
setShowTooltip(!showTooltip);
}}
>
-
+