Skip to content

Commit

Permalink
fix: dao proposals query key (#1412)
Browse files Browse the repository at this point in the history
Signed-off-by: Norman Meier <[email protected]>
  • Loading branch information
n0izn0iz authored Nov 23, 2024
1 parent a3f89ea commit 16b2f01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hooks/dao/useDAOProposals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 16b2f01

Please sign in to comment.