Skip to content

Commit

Permalink
Merge pull request #4270 from balancer/fix/vote-disable
Browse files Browse the repository at this point in the history
fix: disable voting if network is mismatched
  • Loading branch information
alter-eggo authored Oct 2, 2023
2 parents f4ec69a + 39362c2 commit 3652cf7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/contextual/pages/vebal/LMVoting/LMVoting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const { veBalLockTooShort, veBalExpired, hasLock, hasExpiredLock } =
const { shouldResubmitVotes } = useVotingEscrowLocks();
const { networkSlug } = useNetwork();
const { isWalletReady } = useWeb3();
const { isWalletReady, isMismatchedNetwork } = useWeb3();
const { hasVeBalBalance, noVeBalBalance } = useVeBal();
const { fNum } = useNumbers();
Expand Down Expand Up @@ -120,7 +120,10 @@ const selectVotesDisabled = computed(
);
const votingDisabled = computed(
() => selectVotesDisabled.value || unlockedSelectedPools.value.length === 0
() =>
selectVotesDisabled.value ||
unlockedSelectedPools.value.length === 0 ||
isMismatchedNetwork.value
);
/**
Expand Down

1 comment on commit 3652cf7

@vercel
Copy link

@vercel vercel bot commented on 3652cf7 Oct 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.