Skip to content

Commit

Permalink
Merge pull request #393 from jordanlesich/proposalReviewBug
Browse files Browse the repository at this point in the history
fix useContractReads state dumping
  • Loading branch information
jordanlesich authored Oct 23, 2023
2 parents 7695580 + 4ea91d7 commit f570420
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions apps/web/src/hooks/useVotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const useVotes = ({
const { data, isLoading } = useContractReads({
enabled: !!collectionAddress && !!governorAddress && !!signerAddress,
allowFailure: false,
keepPreviousData: true,
contracts: [
{
address: collectionAddress as AddressType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const ProposalActions: React.FC<ProposalActionsProps> = ({
const { data } = useContractReads({
enabled: !!userAddress,
allowFailure: false,
keepPreviousData: true,
contracts: [
{
abi: governorAbi,
Expand Down
4 changes: 1 addition & 3 deletions apps/web/src/pages/dao/[network]/[token]/vote/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

2 comments on commit f570420

@vercel
Copy link

@vercel vercel bot commented on f570420 Oct 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on f570420 Oct 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

testnet-nouns-builder – ./apps/web

testnet.nouns.build
testnet-nouns-builder-git-main-nouns-builder.vercel.app
testnet-nouns-builder-nouns-builder.vercel.app

Please sign in to comment.