lint: fix transactions redux line break

This commit is contained in:
George Lima 2018-12-18 18:42:19 -03:00
parent 887eb37baa
commit f7d6642429
1 changed files with 10 additions and 2 deletions

View File

@ -48,7 +48,11 @@ const initialState = {
export default (state: State = initialState, action: Action) => { export default (state: State = initialState, action: Action) => {
switch (action.type) { switch (action.type) {
case LOAD_TRANSACTIONS: case LOAD_TRANSACTIONS:
return { ...state, error: null, isLoading: true }; return {
...state,
error: null,
isLoading: true,
};
case LOAD_TRANSACTIONS_SUCCESS: case LOAD_TRANSACTIONS_SUCCESS:
return { return {
...state, ...state,
@ -57,7 +61,11 @@ export default (state: State = initialState, action: Action) => {
error: null, error: null,
}; };
case LOAD_TRANSACTIONS_ERROR: case LOAD_TRANSACTIONS_ERROR:
return { ...state, isLoading: false, error: action.payload.error }; return {
...state,
isLoading: false,
error: action.payload.error,
};
default: default:
return state; return state;
} }