From 16b2f0149d28e0df6fbb3291b7bf40da84da8bbf Mon Sep 17 00:00:00 2001 From: n0izn0iz Date: Sat, 23 Nov 2024 23:18:32 +0100 Subject: [PATCH] fix: dao proposals query key (#1412) Signed-off-by: Norman Meier --- packages/hooks/dao/useDAOProposals.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/hooks/dao/useDAOProposals.ts b/packages/hooks/dao/useDAOProposals.ts index 6ff82b99b0..0e1f284962 100644 --- a/packages/hooks/dao/useDAOProposals.ts +++ b/packages/hooks/dao/useDAOProposals.ts @@ -51,7 +51,7 @@ export const useDAOProposals = (daoId: string | undefined) => { const { daoProposals: cosmWasmDAOProposals, ...cosmWasmOther } = useCosmWasmDAOProposals(daoId); const { data: gnoDAOProposals, ...gnoOther } = useQuery( - daoProposalsQueryKey(daoId), + [...daoProposalsQueryKey(daoId), "gno"], async () => { if (network?.kind !== NetworkKind.Gno) return []; const provider = new GnoJSONRPCProvider(network.endpoint); @@ -93,7 +93,7 @@ const useCosmWasmDAOProposals = (daoId: string | undefined) => { const proposalModuleAddress = daoFirstProposalModule?.address; const { data, ...other } = useQuery( - daoProposalsQueryKey(daoId), + [...daoProposalsQueryKey(daoId), "cosmwasm"], async () => { if (!networkId || !proposalModuleAddress) return null;