Skip to content

Commit

Permalink
Merge pull request #186 from privacy-scaling-explorations/fix/recurri…
Browse files Browse the repository at this point in the history
…ng-dependency

fix: recurring dependency in maci context
  • Loading branch information
ctrlc03 authored Jun 28, 2024
2 parents f56b3a4 + f6a3033 commit 885153e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contexts/Maci.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const MaciProvider: React.FC<MaciProviderProps> = ({ children }: MaciProv

const votingEndsAt = useMemo(
() => (pollData ? new Date(Number(pollData.deployTime) * 1000 + Number(pollData.duration) * 1000) : new Date()),
[pollData],
[pollData?.deployTime, pollData?.duration],
);

const onSignup = useCallback(
Expand Down

0 comments on commit 885153e

Please sign in to comment.