Skip to content

Commit

Permalink
debugging v4
Browse files Browse the repository at this point in the history
  • Loading branch information
yash committed Dec 5, 2018
1 parent f4a5a5a commit b344e8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/redux-subspace/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@ var isGlobal = function isGlobal(action) {

var namespacedAction = function namespacedAction(namespace) {
return function (action) {
return namespace && !isGlobal(action, namespace) || console.log('nameaction', acction) ? _objectSpread({}, action, {
return namespace && !isGlobal(action, namespace) ? console.log('nameaction', _objectSpread({}, action, {
type: namespace + "/" + action.type
}) : action;
})) : action;
};
};

Expand Down
4 changes: 2 additions & 2 deletions packages/redux-subspace/src/actions/namespacedAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import isGlobal from './isGlobal'

const namespacedAction = (namespace) => (action) => namespace && !isGlobal(action, namespace) || console.log('nameaction', acction)
? { ...action, type: `${namespace}/${action.type}` }
const namespacedAction = (namespace) => (action) => namespace && !isGlobal(action, namespace)
? console.log('nameaction', { ...action, type: `${namespace}/${action.type}` })
: action

export default namespacedAction

0 comments on commit b344e8b

Please sign in to comment.