Skip to content

Commit

Permalink
Fix bug having to do with order of function params
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgall committed May 23, 2024
1 parent bfcaeac commit 5fade89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ export function VoteContextProvider({

const { loadVotingWeight } = useSnapshotProposal(proposal as SnapshotProposal);
const { remainingTokenIds, getUserERC721VotingTokens } = useUserERC721VotingTokens(
null,
proposal.proposalId,
undefined,
true,
);
const { isSnapshotProposal } = useSnapshotProposal(proposal);
Expand Down
1 change: 1 addition & 0 deletions src/hooks/DAO/proposal/useCastVote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const useCastVote = ({
const [, contractCallPending, contractCallCastVoteViem] = useTransaction();

const { remainingTokenIds, remainingTokenAddresses } = useUserERC721VotingTokens(
null,
proposal.proposalId,
);
const { getCanVote, getHasVoted } = useVoteContext();
Expand Down

0 comments on commit 5fade89

Please sign in to comment.