Skip to content

Commit

Permalink
refactor(redux-store)/deleteProof (#422)
Browse files Browse the repository at this point in the history
* refactor(redux-store): renamed deleteProof

Signed-off-by: Berend Sliedrecht <[email protected]>

* refactor(redux-store): renamed deleteProof

Signed-off-by: Berend Sliedrecht <[email protected]>
  • Loading branch information
berendsliedrecht authored Aug 10, 2021
1 parent 9fa6c6d commit 430d965
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/redux-store/src/slices/proofs/proofsSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const proofsSlice = createSlice({
state.error = action.error
})
// deleteProof
.addCase(ProofsThunks.deletCredential.fulfilled, (state, action) => {
.addCase(ProofsThunks.deleteProof.fulfilled, (state, action) => {
const proofId = action.payload.id
const index = state.proofs.records.findIndex((record) => record.id == proofId)
state.proofs.records.splice(index, 1)
Expand Down
2 changes: 1 addition & 1 deletion packages/redux-store/src/slices/proofs/proofsThunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const ProofsThunks = {
/**
* Deletes a proofRecord in the proof repository.
*/
deletCredential: createAsyncAgentThunk('proofs/deleteProof', async (proofId: string, thunkApi) => {
deleteProof: createAsyncAgentThunk('proofs/deleteProof', async (proofId: string, thunkApi) => {
const proofRepository = thunkApi.extra.agent.injectionContainer.resolve(ProofRepository)
const proofRecord = await proofRepository.getById(proofId)
await proofRepository.delete(proofRecord)
Expand Down

0 comments on commit 430d965

Please sign in to comment.