diff --git a/src/components/_cards/PortfolioCard/index.tsx b/src/components/_cards/PortfolioCard/index.tsx index 826b8958f..c1efb2650 100644 --- a/src/components/_cards/PortfolioCard/index.tsx +++ b/src/components/_cards/PortfolioCard/index.tsx @@ -54,7 +54,7 @@ import { Rewards } from "./Rewards" import { useNetwork } from "wagmi" import WithdrawQueueCard from "../WithdrawQueueCard" import withdrawQueueV0821 from "src/abi/withdraw-queue-v0.8.21.json" -import { CellarNameKey } from "data/types" +import { CellarNameKey, ConfigProps } from "data/types" import { PointsDisplay } from "./PointsDisplay" import { MerklePoints } from "./MerklePoints/MerklePoints" import { BaseButton } from "components/_buttons/BaseButton" @@ -171,6 +171,11 @@ export const PortfolioCard: VFC = (props) => { checkWithdrawRequest() }, [withdrawQueueContract, address, cellarConfig]) + const isMerkleRewardsException = (config: ConfigProps) => { + return config.cellarNameKey === CellarNameKey.REAL_YIELD_ETH_ARB + ||config.cellarNameKey === CellarNameKey.REAL_YIELD_USD_ARB + } + return ( = (props) => { : "--")} - {isBondButtonEnabled(cellarConfig) && - isStakingAllowed && - isMounted && ( + {isMounted + && (isMerkleRewardsException(cellarConfig) || isStakingAllowed) + && (