Skip to content

Commit

Permalink
fix issue where nearby task within bundle was selected when searching…
Browse files Browse the repository at this point in the history
… for nearest task
  • Loading branch information
CollinBeczak committed Feb 13, 2025
1 parent 628d24d commit 795d3de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/HOCs/WithCurrentTask/WithCurrentTask.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export const mapDispatchToProps = (dispatch, ownProps) => {
completionResponses,
);

dispatch(completeAction);
await dispatch(completeAction);
const afterResult = await doAfter();
return afterResult;
},
Expand Down Expand Up @@ -363,7 +363,7 @@ export const isStale = (entity, staleTime) => {
* Load a new random task, handling the differences between standard challenges
* and virtual challenges.
*/
export const nextRandomTask = (dispatch, props, currentTaskId, taskLoadBy) => {
export const nextRandomTask = async (dispatch, props, currentTaskId, taskLoadBy) => {
// We need to make different requests depending on whether we're working on a
// virtual challenge or a standard challenge.
if (_isFinite(props.virtualChallengeId)) {
Expand Down

0 comments on commit 795d3de

Please sign in to comment.