Client: minor fix
This commit is contained in:
@ -43,7 +43,7 @@ export const addActivity = form => dispatch => FitTrackeeApi
|
||||
} else {
|
||||
dispatch(setError(`activities: ${ret.message}`))
|
||||
}
|
||||
dispatch(setLoading())
|
||||
dispatch(setLoading(false))
|
||||
})
|
||||
.catch(error => dispatch(setError(`activities: ${error}`)))
|
||||
|
||||
@ -117,7 +117,7 @@ export const editActivity = form => dispatch => FitTrackeeGenericApi
|
||||
} else {
|
||||
dispatch(setError(`activities: ${ret.message}`))
|
||||
}
|
||||
dispatch(setLoading())
|
||||
dispatch(setLoading(false))
|
||||
})
|
||||
.catch(error => dispatch(setError(`activities: ${error}`)))
|
||||
|
||||
|
@ -13,8 +13,9 @@ export const setError = message => ({
|
||||
message,
|
||||
})
|
||||
|
||||
export const setLoading = () => ({
|
||||
export const setLoading = loading => ({
|
||||
type: 'SET_LOADING',
|
||||
loading
|
||||
})
|
||||
|
||||
export const getData = (target, data) => dispatch => {
|
||||
|
Reference in New Issue
Block a user