Skip to content

Commit 4371fe3

Browse files
committed
Hotfix for a bug in assignment solvers fetch function that caused unhandled promise rejection.
1 parent 3294892 commit 4371fe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/redux/modules/solutions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export const fetchAssignmentSolversIfNeeded =
153153
const lastUpdate = getAssignmentSolversLastUpdate(getState(), assignmentId, groupId, userId);
154154
const threshold = 10 * 60 * 1000; // 10 minutes
155155
if (!lastUpdate || Date.now() - lastUpdate > threshold) {
156-
dispatch(fetchAssignmentSolvers({ assignmentId, groupId, userId }));
156+
return dispatch(fetchAssignmentSolvers({ assignmentId, groupId, userId }));
157157
}
158158
};
159159

0 commit comments

Comments
 (0)