[Dashboard] Fix missing Vote contract UI (#4592)

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates the condition in `useRouteConfig.tsx` to check for "VoteERC20" instead of "Vote".

### Detailed summary
- Updated condition to check for "VoteERC20" instead of "Vote" in `useRouteConfig.tsx` for enabling/disabling a component.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
This commit is contained in:
kien-ngo
2024-09-14 15:56:56 +00:00
parent fb0daabbf6
commit 5abc652871
@@ -421,7 +421,7 @@ export function useContractRouteConfig(
path: "proposals",
isEnabled: contractTypeQuery.isLoading
? "loading"
: contractTypeQuery.data === "Vote"
: contractTypeQuery.data === "VoteERC20"
? "enabled"
: "disabled",
component: () => <LazyContractProposalsPage contract={contract} />,