Skip to content

Commit

Permalink
update useMemo dep
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanlesich committed Oct 17, 2023
1 parent f88aea7 commit 2a15539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/modules/dashboard/DaoProposalCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const NeedsVote = ({ userAddress, proposalState, votes }: NeedsVoteProps) => {
if (proposalState !== ProposalState.Active) return undefined

return votes.some((vote) => vote.voter === userAddress?.toLowerCase())
}, [proposalState, votes])
}, [proposalState, votes, userAddress])

if (hasVoted == null) return null

Expand Down

0 comments on commit 2a15539

Please sign in to comment.