[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:
@@ -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} />,
|
||||
|
||||
Reference in New Issue
Block a user