Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Commit

Permalink
fix: remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelKohler committed Jun 30, 2021
1 parent 5ffe16a commit 5690e49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/actions/sentences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ export function deleteSentences(sentences: number[]): ThunkAction<void, RootStat
return async function(dispatch){
dispatch(deleteSentencesStart());
try {
const results = await sendRequest<Record<string, never>>('sentences/delete', 'POST', { sentences });
dispatch(deleteSentencesDone(results));
await sendRequest<Record<string, never>>('sentences/delete', 'POST', { sentences });
dispatch(deleteSentencesDone());
dispatch(loadMySentences());
} catch (error) {
dispatch(deleteSentencesFailure(error.message));
Expand Down

0 comments on commit 5690e49

Please sign in to comment.