diff --git a/src/contexts/Maci.tsx b/src/contexts/Maci.tsx index b3b3151b..6bc26e28 100644 --- a/src/contexts/Maci.tsx +++ b/src/contexts/Maci.tsx @@ -86,7 +86,7 @@ export const MaciProvider: React.FC = ({ 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(