💚 eslint

pull/637/head
Johan Girod 2019-07-08 12:08:43 +02:00
parent 97ec7b1b3c
commit 256d22cce9
No known key found for this signature in database
GPG Key ID: 9E27B57DA2E8AE12
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
import { without, map, pipe, mergeAll, unnest } from 'ramda'
import { map, mergeAll, pipe, unnest, without } from 'ramda'
import activités from './activités.yaml'
export let flatActivités = pipe(
map(a => (a.activités ? [a, ...a.activités] : [a])),
@ -21,6 +21,7 @@ let initialState = {
let reducer = (state = initialState, action) => {
switch (action.type) {
case 'SELECT_ACTIVITY':
// eslint-disable-next-line
let titre = action.titre,
selectedActivities = state.selectedActivities,
selected = selectedActivities.includes(titre)