diff --git a/apps/ui/src/composables/useVotingPower.ts b/apps/ui/src/composables/useVotingPower.ts index 48ea90f44..d2876d84c 100644 --- a/apps/ui/src/composables/useVotingPower.ts +++ b/apps/ui/src/composables/useVotingPower.ts @@ -1,4 +1,4 @@ -import { supportsNullCurrent } from '@/networks'; +import { offchainNetworks, supportsNullCurrent } from '@/networks'; import { getIndex } from '@/stores/votingPowers'; import { NetworkID, Proposal, Space } from '@/types'; @@ -12,10 +12,13 @@ export function useVotingPower() { } function getProposalSnapshot(proposal: Proposal): number | null { - return ( - (proposal.state === 'pending' ? null : proposal.snapshot) || - getLatestBlock(proposal.network) - ); + const snapshot = + proposal.state === 'pending' && + !offchainNetworks.includes(proposal.network) + ? null + : proposal.snapshot; + + return snapshot || getLatestBlock(proposal.network); } function getSnapshot(