From ae081e9a5d6bbe9fc0ff1f88260f974d853886de Mon Sep 17 00:00:00 2001 From: Thibault Jaillard Date: Fri, 11 Aug 2023 16:21:43 -0400 Subject: [PATCH] Add disclaimer on leaderboard --- src/components/Leaderboard/Leaderboard.tsx | 5 ++++- src/locales/en.ts | 1 + src/pages/PoolDetails/PoolDetails.tsx | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/Leaderboard/Leaderboard.tsx b/src/components/Leaderboard/Leaderboard.tsx index 11d5d754..0da82a23 100644 --- a/src/components/Leaderboard/Leaderboard.tsx +++ b/src/components/Leaderboard/Leaderboard.tsx @@ -90,7 +90,7 @@ const Leaderboard = (props: Props) => { ) : null} - {!(lumWallet && item.address === lumWallet.address) && totalDeposited && userRank && userRank.rank > item.rank ? ( + {!(lumWallet && item.address === lumWallet.address) && totalDeposited && userRank && userRank.rank > item.rank && NumbersUtils.convertUnitNumber(userRank.amount) === totalDeposited ? ( ) : null} + {!(lumWallet && item.address === lumWallet.address) && totalDeposited && userRank && userRank.rank > item.rank && NumbersUtils.convertUnitNumber(userRank.amount) !== totalDeposited ? ( + + ) : null} ); }; diff --git a/src/locales/en.ts b/src/locales/en.ts index 1e9558f6..9c3c5ca3 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -534,5 +534,6 @@ export default { cta: 'See More', notConnectedCta: 'Log in to see more', depositBtn: 'Deposit {{ amount }} {{ denom }} to take his place', + newRanking: 'You new ranking will be displayed in a few minutes', }, }; diff --git a/src/pages/PoolDetails/PoolDetails.tsx b/src/pages/PoolDetails/PoolDetails.tsx index b263e3ef..61f4d0b3 100644 --- a/src/pages/PoolDetails/PoolDetails.tsx +++ b/src/pages/PoolDetails/PoolDetails.tsx @@ -16,12 +16,12 @@ import { useWindowSize } from 'hooks'; import { Error404 } from 'pages'; import { Dispatch, RootState } from 'redux/store'; import { DenomsUtils, Firebase, I18n, KeplrUtils, NumbersUtils, PoolsUtils, WalletUtils } from 'utils'; +import { LeaderboardItemModel } from 'models'; import Skeleton from 'react-loading-skeleton'; import DrawDetailsModal from './components/DrawDetailsModal/DrawDetailsModal'; import './PoolDetails.scss'; -import { LeaderboardItemModel } from 'models'; const PoolDetails = () => { const { poolId, denom } = useParams();