diff --git a/components/governance/Delegation/index.tsx b/components/governance/Delegation/index.tsx index 5b51491b0..480286810 100644 --- a/components/governance/Delegation/index.tsx +++ b/components/governance/Delegation/index.tsx @@ -88,7 +88,7 @@ const Delegation = () => { const delegatedToYou = useMemo(() => { if (votingPower === undefined || yourVotes === undefined) return undefined; - return delegate === zeroAddress ? votingPower - yourVotes : votingPower; + return delegate === zeroAddress && votingPower - yourVotes > 0 ? votingPower - yourVotes : votingPower; }, [delegate, votingPower, yourVotes]); if (isLoadingDelegate) { @@ -131,7 +131,9 @@ const Delegation = () => { {t('Delegated to you')} - {delegatedToYou === 0 ? 0 : formatNumber(delegatedToYou, 'USD', true)} + + {delegatedToYou === 0 ? 0 : formatNumber(delegatedToYou, 'USD', true)} + {delegate === zeroAddress ? ( @@ -147,7 +149,7 @@ const Delegation = () => { )} - {yourVotes === 0 ? 0 : formatNumber(yourVotes, 'USD', true)} + {yourVotes === 0 ? 0 : formatNumber(yourVotes, 'USD', true)} )