From 9499977c23e7f4b5f147755aee8fb1e8ec98c0c4 Mon Sep 17 00:00:00 2001 From: Juan Pablo Rombola Date: Thu, 28 Sep 2023 15:44:29 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20governance:=20fix=20tick=20on=20?= =?UTF-8?q?revoke?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/governance/Delegation/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/governance/Delegation/index.tsx b/components/governance/Delegation/index.tsx index 5b51491b0..2fdec6f00 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) {