Actually use undefined instead of implicit undefined arg

Which might not be undefined...
This commit is contained in:
Berkeley Martinez
2016-01-05 17:42:10 -08:00
parent 81618517c0
commit 056bb6a2dd

View File

@ -45,7 +45,7 @@ export default Actions({
}; };
return { return {
...state, ...state,
jobs: { jobsApp: {
...state.jobs, ...state.jobs,
currentJob: job currentJob: job
} }
@ -169,17 +169,19 @@ export default Actions({
} }
})); }));
}, },
clearPromo(foo, undef) { clearPromo() {
return { return {
/* eslint-disable no-undefined */
transform: jobsTranformer(state => ({ transform: jobsTranformer(state => ({
...state, ...state,
price: undef, price: undefined,
buttonId: undef, buttonId: undefined,
discountAmount: undef, discountAmount: undefined,
promoCode: undef, promoCode: undefined,
promoApplied: false, promoApplied: false,
promoName: undef promoName: undefined
})) }))
/* eslint-enable no-undefined */
}; };
}, },
init({ instance: jobActions }) { init({ instance: jobActions }) {