mirror of
https://github.com/wassname/talk.git
synced 2026-07-25 13:30:59 +08:00
Fixing lint errors and renaming Pym file.
This commit is contained in:
@@ -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});
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user