diff --git a/package.json b/package.json index ea95f124f3..49ccac2246 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "givethdapp", - "version": "2.2.5", + "version": "2.2.6", "private": true, "scripts": { "build": "next build", diff --git a/src/components/cards/BaseStakingCard.tsx b/src/components/cards/BaseStakingCard.tsx index c47f1cd0c9..d318fcf379 100644 --- a/src/components/cards/BaseStakingCard.tsx +++ b/src/components/cards/BaseStakingCard.tsx @@ -245,10 +245,8 @@ const BaseStakingCard: FC = ({ } }, [earned, tokenDistroHelper]); useEffect(() => { - if (chainId) { - if (!regenStreamConfig) setInfo(chainId, type, earned); - } - }, [chainId, earned, type, regenStreamConfig, setInfo]); + if (!regenStreamConfig) setInfo(poolNetwork, type, earned); + }, [poolNetwork, earned, type, regenStreamConfig, setInfo]); const rewardTokenSymbol = regenStreamConfig?.rewardTokenSymbol || 'GIV'; @@ -304,11 +302,12 @@ const BaseStakingCard: FC = ({ {getPoolIconWithName(platform, poolNetwork)} {type === StakingType.GIV_LM && - chainId === config.XDAI_NETWORK_NUMBER && + poolNetwork === + config.XDAI_NETWORK_NUMBER && `GIVgarden `} {platformTitle || platform} - {chainId === config.XDAI_NETWORK_NUMBER && + {poolNetwork === config.XDAI_NETWORK_NUMBER && type === StakingType.GIV_LM && (