From 5abc652871ee4a383c122d4e765c6a10a5ea116d Mon Sep 17 00:00:00 2001 From: kien-ngo Date: Sat, 14 Sep 2024 15:56:56 +0000 Subject: [PATCH] [Dashboard] Fix missing Vote contract UI (#4592) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem solved Short description of the bug fixed or feature added --- ## 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}` --- apps/dashboard/src/contract-ui/hooks/useRouteConfig.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dashboard/src/contract-ui/hooks/useRouteConfig.tsx b/apps/dashboard/src/contract-ui/hooks/useRouteConfig.tsx index f277a3530..ab0c68577 100644 --- a/apps/dashboard/src/contract-ui/hooks/useRouteConfig.tsx +++ b/apps/dashboard/src/contract-ui/hooks/useRouteConfig.tsx @@ -421,7 +421,7 @@ export function useContractRouteConfig( path: "proposals", isEnabled: contractTypeQuery.isLoading ? "loading" - : contractTypeQuery.data === "Vote" + : contractTypeQuery.data === "VoteERC20" ? "enabled" : "disabled", component: () => ,