Skip to content

Commit

Permalink
🩹 governance: fix tick on revoke
Browse files Browse the repository at this point in the history
  • Loading branch information
JuampiRombola committed Sep 28, 2023
1 parent 9a43af7 commit 9499977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/governance/Delegation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9499977

Please sign in to comment.