Skip to content

Commit

Permalink
revert formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Feb 13, 2024
1 parent ef30131 commit a53dd83
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
13 changes: 4 additions & 9 deletions src/components/HOCs/WithTaskBundle/WithTaskBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ import { bindActionCreators } from 'redux'
import _omit from 'lodash/omit'
import _get from 'lodash/get'
import _isFinite from 'lodash/isFinite'
import {
bundleTasks,
deleteTaskBundle,
removeTaskFromBundle,
fetchTaskBundle
} from '../../../services/Task/Task'
import { bundleTasks, deleteTaskBundle, removeTaskFromBundle, fetchTaskBundle } from '../../../services/Task/Task'

/**
* WithTaskBundle passes down methods for creating new task bundles and
Expand Down Expand Up @@ -151,9 +146,9 @@ export function WithTaskBundle(WrappedComponent) {
}

export const mapDispatchToProps = dispatch => bindActionCreators({
bundleTasks,
deleteTaskBundle,
removeTaskFromBundle,
bundleTasks,
deleteTaskBundle,
removeTaskFromBundle,
fetchTaskBundle,
}, dispatch)

Expand Down
4 changes: 2 additions & 2 deletions src/services/Task/Task.js
Original file line number Diff line number Diff line change
Expand Up @@ -929,9 +929,9 @@ export const bundleTasks = function(taskIds, bundleTypeMismatch, bundleName="")
}
else {
if (bundleTypeMismatch === "cooperative") {
dispatch(addError(AppErrors.task.bundleCooperative));
dispatch(addError(AppErrors.task.bundleCooperative))
} else if (bundleTypeMismatch === "notCooperative") {
dispatch(addError(AppErrors.task.bundleNotCooperative));
dispatch(addError(AppErrors.task.bundleNotCooperative))
}

const errorMessage = await error.response.text()
Expand Down

0 comments on commit a53dd83

Please sign in to comment.