diff --git a/apps/web/src/hooks/useVotes.ts b/apps/web/src/hooks/useVotes.ts index 31f2de7d..530450ee 100644 --- a/apps/web/src/hooks/useVotes.ts +++ b/apps/web/src/hooks/useVotes.ts @@ -18,6 +18,7 @@ export const useVotes = ({ const { data, isLoading } = useContractReads({ enabled: !!collectionAddress && !!governorAddress && !!signerAddress, allowFailure: false, + keepPreviousData: true, contracts: [ { address: collectionAddress as AddressType, diff --git a/apps/web/src/modules/proposal/components/ProposalActions/ProposalActions.tsx b/apps/web/src/modules/proposal/components/ProposalActions/ProposalActions.tsx index d9b0c1de..66d98372 100644 --- a/apps/web/src/modules/proposal/components/ProposalActions/ProposalActions.tsx +++ b/apps/web/src/modules/proposal/components/ProposalActions/ProposalActions.tsx @@ -37,6 +37,7 @@ export const ProposalActions: React.FC = ({ const { data } = useContractReads({ enabled: !!userAddress, allowFailure: false, + keepPreviousData: true, contracts: [ { abi: governorAbi, diff --git a/apps/web/src/pages/dao/[network]/[token]/vote/[id].tsx b/apps/web/src/pages/dao/[network]/[token]/vote/[id].tsx index 46278776..35f86327 100644 --- a/apps/web/src/pages/dao/[network]/[token]/vote/[id].tsx +++ b/apps/web/src/pages/dao/[network]/[token]/vote/[id].tsx @@ -13,9 +13,7 @@ import { Meta } from 'src/components/Meta' import { CACHE_TIMES } from 'src/constants/cacheTimes' import { PUBLIC_DEFAULT_CHAINS } from 'src/constants/defaultChains' import SWR_KEYS from 'src/constants/swrKeys' -import { - getProposalState, -} from 'src/data/contract/requests/getProposalState' +import { getProposalState } from 'src/data/contract/requests/getProposalState' import { SDK } from 'src/data/subgraph/client' import { formatAndFetchState,