From 056bb6a2dd84d5479d51435a43cac7ff2be1fd97 Mon Sep 17 00:00:00 2001 From: Berkeley Martinez Date: Tue, 5 Jan 2016 17:42:10 -0800 Subject: [PATCH] Actually use undefined instead of implicit undefined arg Which might not be undefined... --- common/app/routes/Jobs/flux/Actions.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/common/app/routes/Jobs/flux/Actions.js b/common/app/routes/Jobs/flux/Actions.js index a3717a3653..b1ac6f5b41 100644 --- a/common/app/routes/Jobs/flux/Actions.js +++ b/common/app/routes/Jobs/flux/Actions.js @@ -45,7 +45,7 @@ export default Actions({ }; return { ...state, - jobs: { + jobsApp: { ...state.jobs, currentJob: job } @@ -169,17 +169,19 @@ export default Actions({ } })); }, - clearPromo(foo, undef) { + clearPromo() { return { + /* eslint-disable no-undefined */ transform: jobsTranformer(state => ({ ...state, - price: undef, - buttonId: undef, - discountAmount: undef, - promoCode: undef, + price: undefined, + buttonId: undefined, + discountAmount: undefined, + promoCode: undefined, promoApplied: false, - promoName: undef + promoName: undefined })) + /* eslint-enable no-undefined */ }; }, init({ instance: jobActions }) {