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 18, 2025
1 parent 6c96859 commit 90b52b3
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 @@ -266,7 +266,7 @@ export const mapDispatchToProps = (dispatch, ownProps) => {
completionResponses,
);

dispatch(completeAction);
await dispatch(completeAction);
const afterResult = await doAfter();
return afterResult;
},
Expand Down Expand Up @@ -368,7 +368,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 90b52b3

Please sign in to comment.