Fixing lint errors and renaming Pym file.

This commit is contained in:
David Jay
2017-01-24 13:23:42 -05:00
parent 0d7b482dc1
commit 90c58885aa
6 changed files with 15 additions and 16 deletions
+1 -1
View File
@@ -2,4 +2,4 @@ import * as actions from '../constants/asset';
export const fetchAssetRequest = () => ({type: actions.FETCH_ASSET_REQUEST});
export const fetchAssetSuccess = asset => ({type: actions.FETCH_ASSET_SUCCESS, asset});
export const fetchAssetFailure = error => ({type: actions.FETCH_ASSET_FAILURE, error})
export const fetchAssetFailure = error => ({type: actions.FETCH_ASSET_FAILURE, error});
+4 -4
View File
@@ -10,10 +10,10 @@ const initialState = Map({
export default function asset (state = initialState, action) {
switch (action.type) {
case actions.FETCH_ASSET_SUCCESS :
return state
case actions.FETCH_ASSET_SUCCESS :
return state
.merge(action.asset);
default :
return state;
default :
return state;
}
}