Skip to content

Commit

Permalink
Fix useMemo dependency (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziovigevani authored Apr 16, 2020
1 parent 3008cef commit dda0c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useTasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function useOpenTasks(tasks, now, courtSettings) {
!voidedDisputes.has(task.dispute.id) &&
task.phase !== DisputesTypes.Phase.Ended
)
}, [convertedTasks]) // eslint-disable-line react-hooks/exhaustive-deps
}, [convertedTasksPhasesKey, voidedDisputes]) // eslint-disable-line react-hooks/exhaustive-deps

return useMemo(() => {
if (!convertedTasks) {
Expand Down

0 comments on commit dda0c89

Please sign in to comment.