Skip to content

Commit

Permalink
refactor(store): product mutations
Browse files Browse the repository at this point in the history
  • Loading branch information
14nrv committed Jun 9, 2018
1 parent 1685ef8 commit 5357c48
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions store/modules/product/mutations.js
@@ -1,7 +1,5 @@
/* eslint-disable no-return-assign */

export default {
SWITCH_SALE: state => state.sale = !state.sale,
UPDATE_HIGH_PRICE: (state, value) => state.highprice = value,
SET_CATEGORY: (state, value) => state.categorySelected = value
SWITCH_SALE: state => { state.sale = !state.sale },
UPDATE_HIGH_PRICE: (state, value) => { state.highprice = value },
SET_CATEGORY: (state, value) => { state.categorySelected = value }
}

0 comments on commit 5357c48

Please sign in to comment.