From 5d2da9e8e571d3f94eb7b9b2a5838709e6e780b9 Mon Sep 17 00:00:00 2001 From: Amin Latifi Date: Mon, 22 Aug 2022 11:43:04 +0430 Subject: [PATCH 1/2] Fixed total farm balance issue Fixed 100% GIV farming title and tooltip issue Refs giveth/giveth-dapps-v2#1419 --- src/components/cards/BaseStakingCard.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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 && ( Date: Mon, 22 Aug 2022 12:00:59 +0430 Subject: [PATCH 2/2] update version to 2.2.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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",