diff --git a/src/app/components/Delegations/Delegation.tsx b/src/app/components/Delegations/Delegation.tsx index 556a9766..05e7fb81 100644 --- a/src/app/components/Delegations/Delegation.tsx +++ b/src/app/components/Delegations/Delegation.tsx @@ -4,8 +4,10 @@ import { FaBitcoin } from "react-icons/fa"; import { IoIosWarning } from "react-icons/io"; import { Tooltip } from "react-tooltip"; +import { useHealthCheck } from "@/app/hooks/useHealthCheck"; import { DelegationState, StakingTx } from "@/app/types/delegations"; import { GlobalParamsVersion } from "@/app/types/globalParams"; +import { shouldDisplayPoints } from "@/config"; import { getNetworkConfig } from "@/config/network.config"; import { satoshiToBtc } from "@/utils/btcConversions"; import { durationTillNow } from "@/utils/formatTime"; @@ -43,6 +45,9 @@ export const Delegation: React.FC = ({ }) => { const { startTimestamp } = stakingTx; const [currentTime, setCurrentTime] = useState(Date.now()); + const { isApiNormal, isGeoBlocked } = useHealthCheck(); + const shouldShowPoints = + isApiNormal && !isGeoBlocked && shouldDisplayPoints(); useEffect(() => { const timerId = setInterval(() => { @@ -124,7 +129,9 @@ export const Delegation: React.FC = ({

overflow

)} -
+

diff --git a/src/app/components/Delegations/Delegations.tsx b/src/app/components/Delegations/Delegations.tsx index 1679a850..17a31e3b 100644 --- a/src/app/components/Delegations/Delegations.tsx +++ b/src/app/components/Delegations/Delegations.tsx @@ -282,7 +282,9 @@ const DelegationsContent: React.FC = ({

) : ( <> -
+

Amount

Inception

Transaction hash