lint: fix transactions redux line break
This commit is contained in:
parent
887eb37baa
commit
f7d6642429
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue