Skip to content

Commit 00df3d9

Browse files
committed
Fix dependency causing infinite loop in tests
1 parent aa84624 commit 00df3d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/contexts/UserContext.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const useUser = (redirectOnError = false): UserContext => {
3939
},
4040
})
4141
}
42-
}, [redirectOnError, requestError, router])
42+
}, [redirectOnError, requestError])
4343

4444
return ctx
4545
}

0 commit comments

Comments
 (0)