remove unnecessary parameter
This commit is contained in:
parent
3fd6173203
commit
97043dce21
|
@ -413,11 +413,11 @@ export const addReaction = (statusId, name) => (dispatch, getState) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!alreadyAdded) {
|
if (!alreadyAdded) {
|
||||||
dispatch(addReactionRequest(statusId, name, alreadyAdded));
|
dispatch(addReactionRequest(statusId, name));
|
||||||
}
|
}
|
||||||
|
|
||||||
api(getState).post(`/api/v1/statuses/${statusId}/react/${name}`).then(() => {
|
api(getState).post(`/api/v1/statuses/${statusId}/react/${name}`).then(() => {
|
||||||
dispatch(addReactionSuccess(statusId, name, alreadyAdded));
|
dispatch(addReactionSuccess(statusId, name));
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
if (!alreadyAdded) {
|
if (!alreadyAdded) {
|
||||||
dispatch(addReactionFail(statusId, name, err));
|
dispatch(addReactionFail(statusId, name, err));
|
||||||
|
|
|
@ -433,11 +433,11 @@ export const addReaction = (statusId, name) => (dispatch, getState) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!alreadyAdded) {
|
if (!alreadyAdded) {
|
||||||
dispatch(addReactionRequest(statusId, name, alreadyAdded));
|
dispatch(addReactionRequest(statusId, name));
|
||||||
}
|
}
|
||||||
|
|
||||||
api(getState).post(`/api/v1/statuses/${statusId}/react/${name}`).then(() => {
|
api(getState).post(`/api/v1/statuses/${statusId}/react/${name}`).then(() => {
|
||||||
dispatch(addReactionSuccess(statusId, name, alreadyAdded));
|
dispatch(addReactionSuccess(statusId, name));
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
if (!alreadyAdded) {
|
if (!alreadyAdded) {
|
||||||
dispatch(addReactionFail(statusId, name, err));
|
dispatch(addReactionFail(statusId, name, err));
|
||||||
|
|
Loading…
Reference in a new issue