Skip to content

Commit 7c2a793

Browse files
committed
PR feedback
1 parent d907e6e commit 7c2a793

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/containers/ProjectInvitations/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const ProjectInvitations = ({ match, auth, isProjectLoading, history, projectDet
5454
// await for the project details to fetch
5555
await delay(1000)
5656
history.push(status === PROJECT_MEMBER_INVITE_STATUS_ACCEPTED ? `/projects/${projectId}/challenges` : '/projects')
57-
}, [invitation])
57+
}, [projectId, invitation, loadProject, history])
5858

5959
const acceptInvite = useCallback(() => updateInvite(PROJECT_MEMBER_INVITE_STATUS_ACCEPTED), [updateInvite])
6060
const declineInvite = useCallback(() => updateInvite(PROJECT_MEMBER_INVITE_STATUS_REFUSED), [updateInvite])

src/util/delay.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/**
22
* Creates a delay that can be awaited, and optionally aborted via an AbortSignal.
33
*
4-
* @param ms - The number of milliseconds to delay.
5-
* @param signal - Optional AbortSignal to cancel the delay early.
4+
* @param {number} ms - The number of milliseconds to delay.
5+
* @param {AbortSignal} signal - Optional AbortSignal to cancel the delay early.
66
* @returns A Promise that resolves after the delay, or rejects if aborted.
77
*/
88
export function delay (ms, signal) {

0 commit comments

Comments
 (0)