remove unnecessary parameter

This commit is contained in:
fef 2022-12-01 04:26:13 +00:00 committed by Jeremy Kescher
parent ef5396ce65
commit c898de9aba
No known key found for this signature in database
GPG key ID: 80A419A7A613DFA4
2 changed files with 4 additions and 4 deletions

View file

@ -413,11 +413,11 @@ export const addReaction = (statusId, name) => (dispatch, getState) => {
}
}
if (!alreadyAdded) {
dispatch(addReactionRequest(statusId, name, alreadyAdded));
dispatch(addReactionRequest(statusId, name));
}
api(getState).post(`/api/v1/statuses/${statusId}/react/${name}`).then(() => {
dispatch(addReactionSuccess(statusId, name, alreadyAdded));
dispatch(addReactionSuccess(statusId, name));
}).catch(err => {
if (!alreadyAdded) {
dispatch(addReactionFail(statusId, name, err));

View file

@ -433,11 +433,11 @@ export const addReaction = (statusId, name) => (dispatch, getState) => {
}
}
if (!alreadyAdded) {
dispatch(addReactionRequest(statusId, name, alreadyAdded));
dispatch(addReactionRequest(statusId, name));
}
api(getState).post(`/api/v1/statuses/${statusId}/react/${name}`).then(() => {
dispatch(addReactionSuccess(statusId, name, alreadyAdded));
dispatch(addReactionSuccess(statusId, name));
}).catch(err => {
if (!alreadyAdded) {
dispatch(addReactionFail(statusId, name, err));