Skip to content

Commit

Permalink
Merge pull request #1422 from Giveth/giveconomy
Browse files Browse the repository at this point in the history
Release 2.2.6
  • Loading branch information
aminlatifi authored Aug 22, 2022
2 parents 96e037d + 19197ed commit 1784fce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "givethdapp",
"version": "2.2.5",
"version": "2.2.6",
"private": true,
"scripts": {
"build": "next build",
Expand Down
11 changes: 5 additions & 6 deletions src/components/cards/BaseStakingCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,8 @@ const BaseStakingCard: FC<IBaseStakingCardProps> = ({
}
}, [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';

Expand Down Expand Up @@ -304,11 +302,12 @@ const BaseStakingCard: FC<IBaseStakingCardProps> = ({
{getPoolIconWithName(platform, poolNetwork)}
<StakingPoolExchange styleType='Small'>
{type === StakingType.GIV_LM &&
chainId === config.XDAI_NETWORK_NUMBER &&
poolNetwork ===
config.XDAI_NETWORK_NUMBER &&
`GIVgarden `}
{platformTitle || platform}
</StakingPoolExchange>
{chainId === config.XDAI_NETWORK_NUMBER &&
{poolNetwork === config.XDAI_NETWORK_NUMBER &&
type === StakingType.GIV_LM && (
<IconWithTooltip
direction={'top'}
Expand Down

1 comment on commit 1784fce

@vercel
Copy link

@vercel vercel bot commented on 1784fce Aug 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

giveth-dapps-v2 – ./

giveth-dapps-v2-givethio.vercel.app
giveth.io
www.giveth.io
giveth-dapps-v2-git-main-givethio.vercel.app

Please sign in to comment.