Actually use undefined instead of implicit undefined arg
Which might not be undefined...
This commit is contained in:
@ -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 }) {
|
||||||
|
Reference in New Issue
Block a user