Set initalState for selectedCategory to EXCHANGES

This commit is contained in:
Onuwa Nnachi Isaac 2019-04-19 16:07:04 +01:00
parent 2333adc407
commit 35b5d8abcf
No known key found for this signature in database
GPG Key ID: 831A4177E1A2CEBB
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import reducerUtil from '../../common/utils/reducer'
import { EXCHANGES } from '../../common/data/categories'
const UPDATE_CATEGORY = 'UPDATE_CATEGORY'
@ -7,7 +8,7 @@ export const selectCategory = category => ({
payload: category,
})
const initialState = null
const initialState = EXCHANGES
const categoryChange = (_, category) => category